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); }
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)); }
void ShouldScrollDown() { double currentValue = vScrollBar.Value; vScrollBar.ScrollDown(); vScrollBar.ScrollDown(); vScrollBar.ScrollDown(); vScrollBar.ScrollDown(); vScrollBar.ScrollDown(); Assert.Equal(currentValue + (smallChange * 5), 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(); }
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); }