Пример #1
0
        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);
        }
Пример #2
0
        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));
        }