public void TestToString() { Employee employee = new Employee("John", "Kennedy"); Assert.AreEqual(employee.ToString(), "Employee{John,Kennedy}"); }
public void TestHashCode() { Employee employee = new Employee("John", "Kennedy"); Employee employee2 = new Employee("John", "Kennedy"); Assert.AreEqual(employee.GetHashCode(), employee2.GetHashCode()); }
public void TestGetLastName() { Employee employee = new Employee("Roger", "Rabbit"); Assert.AreEqual("Rabbit", employee.GetLastName(), "Last name not correct"); }
public void TestFullName() { Employee employee = new Employee("Abe", "Lincoln"); Assert.AreEqual(employee.GetFullName(), "Abe Lincoln"); }
public void TestEqualityDesctructive() { Employee employee = new Employee("James", "Kirk"); Employee employee2 = new Employee("Jean", "Picard"); Assert.AreNotEqual(employee, employee2); }
public void TestEquality() { Employee employee = new Employee("John", "Kennedy"); Employee employee2 = new Employee("John", "Kennedy"); Assert.AreEqual(employee, employee2); }