public void ShouldScrollUp() { vScrollBar.SetToMaximum(); double maxValue = vScrollBar.Value; vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); Assert.AreEqual(maxValue - (smallChange * 5), vScrollBar.Value); }
public void ShouldScrollUp() { vScrollBar.SetToMaximum(); var maxValue = vScrollBar.Value; vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); vScrollBar.ScrollUp(); Assert.That(vScrollBar.Value, Is.EqualTo(maxValue - (smallChange * 5)).Within(3)); }