public void Creating_address_handles_invalid_input(string street, string city, string zipcode, string expected) { var result = AddressFP.CreateValidAddress(street, city, zipcode); result.IsValid.Should().BeFalse(); result.ToString().Should().Be(expected); }
public void Creating_address_works() { // Act var addressFP = AddressFP.CreateValidAddress("742 Evergreen Terrace", "Springfield", "58008"); // Assert addressFP.IsValid.Should().BeTrue(); addressFP.ToString().Should().Be("Valid(Street: 742 Evergreen Terrace; City: Springfield; Zipcode: 58008)"); }