public void FiveDigitPostalCodeSpecification() { var specification = new PostalCodeSpecification(); Assert.IsTrue(specification.IsSatisfiedBy(ValidPostalCode)); Assert.IsTrue(string.IsNullOrWhiteSpace(specification.GetReasonsForDissatisfactionSeparatedWithNewLine())); }
private static void AssertFailedSpecification(string postalCode) { var specification = new PostalCodeSpecification(); Assert.IsFalse(specification.IsSatisfiedBy(postalCode)); Assert.IsFalse(string.IsNullOrWhiteSpace(specification.GetReasonsForDissatisfactionSeparatedWithNewLine())); }