RadioDialogTests ClickingDisabledRadioButtonDoesNotCauseTheOthersToUnselect 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 ClickingDisabledRadioButtonDoesNotCauseTheOthersToUnselect()
Examples

[Test, CloseAfterFirstFrame]
public void ClickingDisabledRadioButtonDoesNotCauseTheOthersToUnselect()
{
    if (mouse == null)
        return; //ncrunch: no coverage 
    var buttons = dialog.Get<List<RadioButton>>();
    buttons[2].IsEnabled = false;
    PressAndReleaseMouse(new Vector2D(0.35f, 0.5f));
    PressAndReleaseMouse(new Vector2D(0.35f, 0.6f));
    Assert.IsTrue(buttons[1].State.IsSelected);
    Assert.IsFalse(buttons[2].State.IsSelected);
}
See Also