public void WrongEndDateTestIsActiv() { // Arrange ProductNames.Manager manager = new ProductNames.Manager(); manager.EndDate = new System.DateTime(2008, 3, 5); //ACT bool test3 = manager.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"); }
public void WrongStartDateTestIsActiv() { // Arrange ProductNames.Manager manager = new ProductNames.Manager(); manager.StartDate = new System.DateTime(2020, 5, 2); manager.EndDate = new System.DateTime(2019, 3, 5); //ACT bool test2 = manager.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"); }
public void CorectTestIsActiv() { // Arrange ProductNames.Manager manager = new ProductNames.Manager(); manager.StartDate = new System.DateTime(2007, 5, 2); manager.EndDate = new System.DateTime(2019, 3, 5); //ACT bool test1 = manager.isActive(); //Assert Assert.AreNotEqual(false, test1, "The program should return true but it returns false"); }
public void TestGetFullName() { //Arrange ProductNames.Manager manager = new ProductNames.Manager(); manager.FirstName = "dan"; manager.LastName = "chircan"; string expected = "dan chircan"; //Act string actual = manager.GetFullName(); //Assert Assert.AreEqual(expected, actual, "The full name is wrong"); }