public void ShouldGetOneProblemWithNoParametersDeclared() { NonEmptyServiceContract rule = new NonEmptyServiceContract(); rule.Check(RuleHelper.GetTypeNodeFromType(typeof(INoDefinedNameInServiceContract))); Assert.AreEqual(1, rule.Problems.Count); }