Esempio n. 1
0
        public void ShouldGetNoProblemWithNoRuleViolationOnOperationContract()
        {
            ReviewProtectionLevel rule = new ReviewProtectionLevel();
            TypeNode typeNode          = RuleHelper.GetTypeNodeFromType(typeof(IHelloWorld2));

            rule.VisitAttributes(typeNode.GetMembersNamed(Identifier.For("HelloWorld"))[0].Attributes);
            Assert.AreEqual(0, rule.Problems.Count);
        }
Esempio n. 2
0
        public void ShouldGetNoProblemWithNoRuleViolationOnServiceContract()
        {
            ReviewProtectionLevel rule = new ReviewProtectionLevel();
            TypeNode typeNode          = RuleHelper.GetTypeNodeFromType(typeof(IHelloWorld2));

            rule.VisitAttributes(typeNode.Attributes);
            Assert.AreEqual(0, rule.Problems.Count);
        }