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

[Test, CloseAfterFirstFrame]
public void ValueCannotGoAboveMaximum()
{
    bar.Value = 110;
    Assert.AreEqual(100, bar.Value);
    Assert.AreEqual(Width, bar.DrawArea.Width);
    Assert.AreEqual(Color.Green, bar.Color);
}
See Also