public void DeleteTestIDZero() { var Employee = new EmployeeMock(); var count = Employee.EmployeeCollection().Count; Employee.Delete(0); Assert.AreEqual(count, Employee.EmployeeCollection().Count); }
public void DeleteTest() { var Employee = new EmployeeMock(); var myEmp = Employee.EmployeeCollection().FirstOrDefault(); var count = Employee.EmployeeCollection().Count; Employee.Delete(myEmp.id); Assert.AreEqual(count - 1, Employee.EmployeeCollection().Count); }
public void DeleteExpectedBehavior() { // Arrange var employeeMock = new EmployeeMock(); int ID = 0; // Act var result = employeeMock.Delete(ID); // Assert Assert.AreEqual(result, false); }