CharacterButton IsClickable Method Delta Engine Documentation

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

public bool IsClickable()

Return Value

Type: Boolean
Remarks

Tests: FindTheWord.Tests.CharacterButtonTests
Examples

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