public void IsValid_TR_True() { var attr = new ForbiddenValuesAttribute("DE", "FR", "GB"); var act = attr.IsValid(Country.TR); Assert.IsTrue(act); }
public void IsValid_Null_True() { var attr = new ForbiddenValuesAttribute("DE", "FR", "GB"); var act = attr.IsValid(null); Assert.IsTrue(act); }
public void IsValid_GB_False() { var attr = new ForbiddenValuesAttribute("DE", "FR", "GB"); var act = attr.IsValid(Country.GB); Assert.IsFalse(act); }