CharacterButton Letter Property Delta Engine Documentation

Namespace: FindTheWord
Assembly: FindTheWord (in FindTheWord.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public char Letter { get; set; }

Property Value

Type: Char
Remarks

Tests: FindTheWord.Tests.CharacterButtonTests
Examples

2 unit tests call FindTheWord.CharacterButton.Letter
[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