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

[Test, CloseAfterFirstFrame]
public void ChangingValueUpdatesDrawArea()
{
    bar.Value = 60;
    Assert.AreEqual(60, bar.Value);
    Assert.AreEqual(new Rectangle(Left, Top, 0.6f * Width, Height), bar.DrawArea);
}
See Also