Example #1
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));
        }
Example #2
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);
        }
Example #3
0
 protected override void TestFixtureSetUp()
 {
     listBox    = window.Get <ListBox>("listBoxWithVScrollBar");
     vScrollBar = listBox.ScrollBars.Vertical;
     vScrollBar.ScrollDown();
     smallChange = vScrollBar.Value;
     vScrollBar.ScrollUp();
     vScrollBar.ScrollDownLarge();
     largeChange = vScrollBar.Value;
     vScrollBar.ScrollUpLarge();
 }
Example #4
0
 protected override void TestFixtureSetUp()
 {
     listBox = Window.Get<ListBox>("listBoxWithVScrollBar");
     vScrollBar = listBox.ScrollBars.Vertical;
     vScrollBar.ScrollDown();
     smallChange = vScrollBar.Value;
     vScrollBar.ScrollUp();
     vScrollBar.ScrollDownLarge();
     largeChange = vScrollBar.Value;
     vScrollBar.ScrollUpLarge();
 }
Example #5
0
 public void Setup()
 {
     listBox = MainWindow.Get<ListBox>("ListBoxWithVScrollBar");
     vScrollBar = listBox.ScrollBars.Vertical;
     vScrollBar.ScrollDown();
     smallChange = vScrollBar.Value;
     vScrollBar.ScrollUp();
     vScrollBar.ScrollDownLarge();
     largeChange = vScrollBar.Value;
     vScrollBar.ScrollUpLarge();
     if (vScrollBar.IsNotMinimum)
     {
         vScrollBar.SetToMinimum();
     }
 }
Example #6
0
 public void Setup()
 {
     listBox    = MainWindow.Get <ListBox>("ListBoxWithVScrollBar");
     vScrollBar = listBox.ScrollBars.Vertical;
     vScrollBar.ScrollDown();
     smallChange = vScrollBar.Value;
     vScrollBar.ScrollUp();
     vScrollBar.ScrollDownLarge();
     largeChange = vScrollBar.Value;
     vScrollBar.ScrollUpLarge();
     if (vScrollBar.IsNotMinimum)
     {
         vScrollBar.SetToMinimum();
     }
 }
Example #7
0
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            listBox = MainWindow.Get<ListBox>("ListBoxWithVScrollBar");
            vScrollBar = listBox.ScrollBars.Vertical;
            vScrollBar.ScrollDown();
            smallChange = vScrollBar.Value;
            vScrollBar.ScrollUp();
            vScrollBar.ScrollDownLarge();
            largeChange = vScrollBar.Value;
            vScrollBar.ScrollUpLarge();
            if (vScrollBar.IsNotMinimum)
                vScrollBar.SetToMinimum();

            RunTest(ShouldGetVerticalScrollBar);
            RunTest(ShouldScrollDown);
            RunTest(ShouldScrollDownLarge);
            RunTest(ShouldScrollUp);
            RunTest(ShouldScrollUpLarge);
        }
Example #8
0
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            listBox    = MainWindow.Get <ListBox>("ListBoxWithVScrollBar");
            vScrollBar = listBox.ScrollBars.Vertical;
            vScrollBar.ScrollDown();
            smallChange = vScrollBar.Value;
            vScrollBar.ScrollUp();
            vScrollBar.ScrollDownLarge();
            largeChange = vScrollBar.Value;
            vScrollBar.ScrollUpLarge();
            if (vScrollBar.IsNotMinimum)
            {
                vScrollBar.SetToMinimum();
            }

            RunTest(ShouldGetVerticalScrollBar);
            RunTest(ShouldScrollDown);
            RunTest(ShouldScrollDownLarge);
            RunTest(ShouldScrollUp);
            RunTest(ShouldScrollUpLarge);
        }