public void ToString_with_no_names_shows_Nulls_Test() { int employeeId = 1; Assignment1.Employee employee = new Assignment1.Employee(employeeId); string expectedToString = $"{employeeId} null null"; Assert.That(employee.ToString(), Is.EqualTo(expectedToString)); //Assert.Fail(); // you may delete this line after uncommenting the above code }
public void ToString_Test() { int employeeId = 1; string firstName = "First"; string lastName = "Employee"; Assignment1.Employee employee = new Assignment1.Employee(employeeId, firstName, lastName); string expectedToString = $"{employeeId} {firstName} {lastName}"; Assert.That(employee.ToString(), Is.EqualTo(expectedToString)); // Assert.Fail(); // you may delete this line after uncommenting the above code }