示例#1
0
        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);
        }
示例#2
0
        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);
        }