PercentageBarTests ValueCannotGoBelowMinimum 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 ValueCannotGoBelowMinimum()
Examples

[Test, CloseAfterFirstFrame]
public void ValueCannotGoBelowMinimum()
{
    bar.Value = -10;
    Assert.AreEqual(0, bar.Value);
    Assert.AreEqual(0, bar.DrawArea.Width);
    Assert.AreEqual(Color.Red, bar.Color);
}
See Also