示例#1
0
        public void ShouldScrollDown()
        {
            double currentValue = vScrollBar.Value;

            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            Assert.AreEqual(currentValue + (smallChange * 5), vScrollBar.Value, 0.001d);
        }
示例#2
0
        public void ShouldScrollDownTest()
        {
            var currentValue = vScrollBar.Value;

            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            Assert.That(vScrollBar.Value, Is.EqualTo(currentValue + (smallChange * 5)).Within(3));
        }
示例#3
0
        void ShouldScrollDown()
        {
            double currentValue = vScrollBar.Value;

            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            vScrollBar.ScrollDown();
            Assert.Equal(currentValue + (smallChange * 5), vScrollBar.Value, 3);
        }
示例#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();
 }
示例#5
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();
 }
示例#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();
     }
 }
示例#7
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();
     }
 }
示例#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);
        }
示例#9
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);
        }