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); }
public void ShouldGetNoProblemWithNoRuleViolationOnServiceContract() { ReviewProtectionLevel rule = new ReviewProtectionLevel(); TypeNode typeNode = RuleHelper.GetTypeNodeFromType(typeof(IHelloWorld2)); rule.VisitAttributes(typeNode.Attributes); Assert.AreEqual(0, rule.Problems.Count); }