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)); }
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); }
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(); }
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(); }
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(); } }
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(); } }
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); }
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); }