public void Equals__EmployeeXIsNotNull_EmployeeYIsNull__ReturnsFalse() { var comparer = new EmployeeComparer(); Employee employeeX = new Employee(); Employee employeeY = null; var res = comparer.Equals(employeeX, employeeY); Assert.That(false == res); }
public void Equals__EmployeesHaveEqualId__ReturnsFalse() { var comparer = new EmployeeComparer(); Employee employeeX = new Employee { Id = "AR12345", Rank = new Rank { Number = 3 } }; Employee employeeY = new Employee { Id = "AR12345", Rank = new Rank { Number = 2 } }; var res = comparer.Equals(employeeX, employeeY); Assert.That(true == res); }