public void Should_not_have_error_when_subject_is_specified() { var model = new SendPrivateMessageModel(); model.Subject = "some comment"; _validator.ShouldNotHaveValidationErrorFor(x => x.Subject, model); }
public void ShouldNotHaveErrorWhenSubjectIsSpecified() { var model = new SendPrivateMessageModel { Subject = "some comment" }; _validator.ShouldNotHaveValidationErrorFor(x => x.Subject, model); }