public void Validate_RequiredCustomArrayFieldIsNull_ExceptionThrown() { // Assign var model = new TestModelRequiredCustomArray(); // Act & Assert Assert.Throws <ModelValidationException>(() => _validator.Validate(model)); }
public void Validate_RequiredCustomArrayFieldIsNotNull_NoExceptions() { // Assign var model = new TestModelRequiredCustomArray { Prop1 = new TestModelEMail[1] { null } }; // Act & Assert _validator.Validate(model); }