Exemplo n.º 1
0
        public void WrongEndDateTestIsActivArhitect()
        {
            // Arrange
            ProductNames.Arhitect arhitect = new ProductNames.Arhitect();
            arhitect.EndDate = new System.DateTime(2008, 3, 5);
            //ACT
            bool test3 = arhitect.isActive();

            //Assert
            Assert.AreNotEqual(true, test3, "The program should return false but it returns true, the current time can be greater than the end time");
        }
Exemplo n.º 2
0
        public void WrongStartDateTestIsActivArhitect()
        {
            // Arrange
            ProductNames.Arhitect arhitect = new ProductNames.Arhitect();
            arhitect.StartDate = new System.DateTime(2020, 5, 2);
            arhitect.EndDate   = new System.DateTime(2019, 3, 5);
            //ACT
            bool test2 = arhitect.isActive();

            //Assert
            Assert.AreNotEqual(true, test2, "The program should return false but it returns true, the start date can be greater than the end date");
        }
Exemplo n.º 3
0
        public void CorectTestIsActivArhitect()
        {
            // Arrange
            ProductNames.Arhitect arhitect = new ProductNames.Arhitect();
            arhitect.StartDate = new System.DateTime(2007, 5, 2);
            arhitect.EndDate   = new System.DateTime(2019, 3, 5);
            //ACT
            bool test1 = arhitect.isActive();

            //Assert
            Assert.AreNotEqual(false, test1, "The program should return true but it returns false");
        }