Example #1
0
        public void IsValid_TR_True()
        {
            var attr = new ForbiddenValuesAttribute("DE", "FR", "GB");
            var act  = attr.IsValid(Country.TR);

            Assert.IsTrue(act);
        }
Example #2
0
        public void IsValid_Null_True()
        {
            var attr = new ForbiddenValuesAttribute("DE", "FR", "GB");
            var act  = attr.IsValid(null);

            Assert.IsTrue(act);
        }
Example #3
0
        public void IsValid_GB_False()
        {
            var attr = new ForbiddenValuesAttribute("DE", "FR", "GB");
            var act  = attr.IsValid(Country.GB);

            Assert.IsFalse(act);
        }