public void TestMethod9() //добавление тура { Tours tour = new Tours("manager"); int expected = tour.countRows() + 1; AddTourOrGroup newTour = new AddTourOrGroup("manager"); newTour.addTour(); int actual = tour.countRows(); newTour.deleteTour(); Assert.AreEqual(expected, actual); }
public void TestMethod10() //удаление тура { Tours tour = new Tours("agent1"); AddTourOrGroup newTour = new AddTourOrGroup("agent1"); newTour.addTour(); int expected = tour.countRows() - 1; newTour.deleteTour(); int actual = tour.countRows(); Assert.AreEqual(expected, actual); }