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

[Test, CloseAfterFirstFrame]
public void ValueDecreasesIfAboveNewMaximum()
{
    bar.Value = 50;
    bar.Maximum = 40;
    Assert.AreEqual(40, bar.Value);
    Assert.AreEqual(Color.Green, bar.Color);
}
See Also