public void StandardErrorMessageConstructor() { // Act var componentUnderTest = new DateAfterAttribute("OtherProperty"); // Assert componentUnderTest.OtherOtherPropertyName.ShouldHaveSameValueAs("OtherProperty"); componentUnderTest.FormatErrorMessage("prop").ShouldHaveSameValueAs("prop should be after OtherProperty"); }
public void FullConstructor() { // Act var componentUnderTest = new DateAfterAttribute("OtherProperty", "ErrorMessage"); // Assert componentUnderTest.OtherOtherPropertyName.ShouldHaveSameValueAs("OtherProperty"); componentUnderTest.FormatErrorMessage(null).ShouldHaveSameValueAs("ErrorMessage"); }