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

[Test, CloseAfterFirstFrame]
public void NoValuesThrowsException()
{
    Assert.Throws<SelectBox.MustBeAtLeastOneValue>(() => new DropdownList(Rectangle.Zero, null));
    Assert.Throws<SelectBox.MustBeAtLeastOneValue>(
        () => new DropdownList(Rectangle.Zero, new List<object>()));
}
See Also