public void WhenTagIsSpecified_ValidatePotentialValueForGivenTags() { IClassValidator cv = new ClassValidator(typeof(EntityForPotential)); cv.GetPotentialInvalidValues("Value", "123", typeof(Warning)).Should().Have.Count.EqualTo(1); cv.GetPotentialInvalidValues("Value", "", typeof(Warning)).Should().Have.Count.EqualTo(2); cv.GetPotentialInvalidValues("Value", "", typeof(Error), typeof(Warning)).Should().Have.Count.EqualTo(2); cv.GetPotentialInvalidValues("Value", "123", typeof(Error)).Should().Be.Empty(); cv.GetPotentialInvalidValues("Value", "", typeof(Error)).Should().Have.Count.EqualTo(1); }