public void ShouldResetUnmatchedMessageHandlerFlag() { MultipleUnmatchedMessageHandlers rule = new MultipleUnmatchedMessageHandlers(); TypeNode typeNode = RuleHelper.GetTypeNodeFromType(typeof(IMultipleUnmatchedMessageHandlers)); rule.Check(RuleHelper.GetMemberForOperation(typeNode, "Operation1")); rule.Check(RuleHelper.GetMemberForOperation(typeNode, "Operation3")); Assert.AreEqual(1, rule.Problems.Count); rule.Check(typeNode); rule.Check(RuleHelper.GetMemberForOperation(typeNode, "Operation1")); Assert.AreEqual(1, rule.Problems.Count); }
public void ShouldResetUnmatchedMessageHandlerFlag() { MultipleUnmatchedMessageHandlers rule = new MultipleUnmatchedMessageHandlers(); TypeNode typeNode = RuleHelper.GetTypeNodeFromType(typeof(IMultipleUnmatchedMessageHandlers)); rule.Check(RuleHelper.GetMemberForOperation(typeNode, "Operation1")); rule.Check(RuleHelper.GetMemberForOperation(typeNode, "Operation3")); Assert.AreEqual(1, rule.Problems.Count); rule.Check(typeNode); rule.Check(RuleHelper.GetMemberForOperation(typeNode, "Operation1")); Assert.AreEqual(1, rule.Problems.Count); }