Namespace: FindTheWord
Assembly: FindTheWord (in FindTheWord.exe) Version: 1.1.1.0 (1.1.1)
Tests: FindTheWord.Tests.CharacterButtonTests
2 unit tests call FindTheWord.CharacterButton.Letter
Assembly: FindTheWord (in FindTheWord.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: CharRemarks
Examples
[Test] public void SettingCharactersSetsState() { var characterButton = new CharacterButton(0.5f, 0.5f, null); characterButton.Letter = 'S'; characterButton.ShowLetter(); Assert.IsTrue(characterButton.IsClickable()); Assert.AreEqual("CharacterButton(0 - S)", characterButton.ToString()); }
[Test] public void NotClickableWhenLetterRemoved() { var characterButton = new CharacterButton(0.5f, 0.5f, null); characterButton.Letter = 'S'; characterButton.RemoveLetter(); Assert.IsFalse(characterButton.IsClickable()); }
See Also