DropdownListTests WhenDisabledSelectionBoxIsHidden 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 WhenDisabledSelectionBoxIsHidden()
Examples

[Test, CloseAfterFirstFrame]
public void WhenDisabledSelectionBoxIsHidden()
{
    if (mouse == null)
        return; //ncrunch: no coverage
    Click(new Vector2D(0.5f, 0.31f));
    dropdownList.IsEnabled = false;
    Assert.IsFalse(dropdownList.SelectBox.IsVisible);
    foreach (FontText text in dropdownList.SelectBox.texts)
        Assert.IsFalse(text.IsVisible);
}
See Also