public void DoInvalidFail() { Assert.NotNull(EmailSamples.Invalid); Assert.NotEmpty(EmailSamples.Invalid); foreach (var invalidEmail in EmailSamples.Invalid.Concat(EmailSamples.Incomplete)) { Assert.False(IsBizMail.IsValid(invalidEmail), $"{invalidEmail} is invalid"); } }
public void DoValidPassValidation() { Assert.NotNull(EmailSamples.Business); Assert.NotEmpty(EmailSamples.Business); foreach (var businessEmail in EmailSamples.Business) { Assert.True(IsBizMail.IsValid(businessEmail), $"{businessEmail} is not free (business)"); } }