ScrollbarTests UpdateValues 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 UpdateValues()
Examples

[Test, CloseAfterFirstFrame]
public void UpdateValues()
{
    scrollbar.MinValue = 1;
    scrollbar.MaxValue = 10;
    scrollbar.ValueWidth = 2;
    scrollbar.CenterValue = 4;
    Assert.AreEqual(1, scrollbar.MinValue);
    Assert.AreEqual(10, scrollbar.MaxValue);
    Assert.AreEqual(4, scrollbar.CenterValue);
    Assert.AreEqual(2, scrollbar.ValueWidth);
}
See Also