Example #1
0
        public void Task_877_2() //Удаление не существующей строки
        {
            //arrange
            MTypesOfOccupations tp = new MTypesOfOccupations("Лекция", "Л");
            bool expected          = false;
            //act
            CTypesOfOccupations ct = new CTypesOfOccupations();
            bool actual            = ct.Delete(tp);

            //assert
            Assert.AreEqual(expected, actual);
        }
        public void DCTypesOfOccupation_1() //Удаление существующей строки
        {
            //arrange
            MTypesOfOccupations tp = new MTypesOfOccupations("Лекция", "Л");
            bool expected          = true;
            //act
            CTypesOfOccupations ct = new CTypesOfOccupations();

            ct.Insert(tp);
            bool actual = ct.Delete(tp);

            //assert
            Assert.AreEqual(expected, actual);
        }