public void ValidateMissingLastName() { // Arrange var customer = new Customer() { EmailAddress = "*****@*****.**" }; var expect = false; // Act var actual = customer.Validate(); // Assert Assert.AreEqual(expect, actual); }
public void ValidateValid() { // Arrange var customer = new Customer() { LastName = "Baggins", EmailAddress = "*****@*****.**" }; var expect = true; // Act var actual = customer.Validate(); // Assert Assert.AreEqual(expect, actual); }