Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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);
        }