public void ShouldFailValidationOnNullModel() { var validator = new SourceModelValidator(); SourceModel model = null; var result = validator.Validate(model); result.ShouldBeFalse(); }
public void ShouldPassValidationOnNullModel() { var validator = new SourceModelValidator(); var model = new SourceModel { Items = new[] { "One", "Two" } }; var result = validator.Validate(model); result.ShouldBeTrue(); }