public void GoPreviousPageTest() { _pageControl.GoPreviousPage(); Assert.AreEqual(INIT_PAGE, _target.GetProperty("Page")); _pageControl.Page = 3; _pageControl.GoPreviousPage(); Assert.AreEqual(INIT_PAGE + 1, _target.GetProperty("Page")); }
// go previous page private void GoPreviousPageButtonClick(object sender, EventArgs e) { ClearButtons(); _pageControl.GoPreviousPage(); DisplayTabPageContent(_tabControl.SelectedTab.Text); }