public void ShouldScrollUpLarge() { vScrollBar.ScrollUpLarge(); vScrollBar.ScrollUpLarge(); vScrollBar.ScrollUpLarge(); Assert.AreEqual(50 - (largeChange * 3), vScrollBar.Value - 3); }
public void ShouldScrollUpLarge() { var currentValue = vScrollBar.Value; vScrollBar.ScrollUpLarge(); vScrollBar.ScrollUpLarge(); vScrollBar.ScrollUpLarge(); Assert.That(vScrollBar.Value, Is.EqualTo(currentValue - (largeChange * 3)).Within(3)); }
void ShouldScrollUpLarge() { var currentValue = vScrollBar.Value; vScrollBar.ScrollUpLarge(); vScrollBar.ScrollUpLarge(); vScrollBar.ScrollUpLarge(); Assert.Equal(currentValue - (largeChange * 3), vScrollBar.Value, 3); }
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); }
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(); }