TextBoxTests ClickingTextBoxDoesNotGivesItFocusIfItIsDisabled Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ClickingTextBoxDoesNotGivesItFocusIfItIsDisabled()
Examples

[Test, CloseAfterFirstFrame]
public void ClickingTextBoxDoesNotGivesItFocusIfItIsDisabled()
{
    topTextBox.IsEnabled = false;
    PressAndReleaseMouse(Top.Center);
    Assert.IsFalse(topTextBox.State.HasFocus);
}
See Also