Пример #1
0
        public void GetRulesForDerivedDescriptor()
        {
            IRuleSet <IValidationRule> ruleSet = this.testee.GetRules(new DerivedTestRuleSetDescriptor());

            Assert.IsNotNull(ruleSet);
            Assert.AreEqual(2, ruleSet.Count);
            Assert.IsInstanceOf(typeof(TestValidationRule), ruleSet.ElementAt(0));
            Assert.IsInstanceOf(typeof(AnotherTestValidationRule), ruleSet.ElementAt(1));
        }