public void ShouldGetOneProblemWithOutputParamsWithOneWayOperation()
        {
            NoOutputParamsWithOneWayOperation rule = new NoOutputParamsWithOneWayOperation();
			TypeNode typeNode = RuleHelper.GetTypeNodeFromType(typeof(IOutputParamsWithOneWay));
            rule.Check(typeNode.GetMembersNamed(Identifier.For("Operation"))[0]);

            Assert.AreEqual(1, rule.Problems.Count);
        }
Exemple #2
0
        public void ShouldGetOneProblemWithOutputParamsWithOneWayOperation()
        {
            NoOutputParamsWithOneWayOperation rule = new NoOutputParamsWithOneWayOperation();
            TypeNode typeNode = RuleHelper.GetTypeNodeFromType(typeof(IOutputParamsWithOneWay));

            rule.Check(typeNode.GetMembersNamed(Identifier.For("Operation"))[0]);

            Assert.AreEqual(1, rule.Problems.Count);
        }