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

[Test, CloseAfterFirstFrame]
public void IfValuesAreChangedButStillContainSelectedValueItRemainsSelected()
{
    var newValues = new List<object> { 1, "value 1", 2 };
    dropdownList.Values = newValues;
    Assert.AreEqual(newValues, dropdownList.Values);
    Assert.AreEqual("value 1", dropdownList.SelectedValue);
    Assert.AreEqual(3, dropdownList.SelectBox.texts.Count);
}
See Also