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

[Test, CloseAfterFirstFrame]
public void IfSelectedValueIsChangedToSomethingNotInValuesItThrowsAnException()
{
    Assert.Throws<DropdownList.SelectedValueMustBeOneOfTheListOfValues>(
        () => dropdownList.SelectedValue = "value 4");
}
See Also