public void Validate_RequiredCustomListFieldIsNull_ExceptionThrown() { // Assign var model = new TestModelRequiredCustomGenericList(); // Act & Assert Assert.Throws <ModelValidationException>(() => _validator.Validate(model)); }
public void Validate_RequiredCustomListFieldIsNotNull_NoExceptions() { // Assign var model = new TestModelRequiredCustomGenericList() { Prop1 = new List <TestModelEMail>() }; // Act & Assert _validator.Validate(model); }