public void ShouldGetOneProblemWithRuleViolation() { ExceptionDetailInFaults rule = new ExceptionDetailInFaults(); Configuration configuration = ConfigurationLoader.LoadConfiguration("ExceptionDetailInFaults.config"); ProblemCollection problems = rule.Check(configuration); Assert.IsNotNull(problems); Assert.AreEqual(2, problems.Count); Assert.AreEqual(configuration.FilePath, problems[0].SourceFile); }
public void ShouldGetOneProblemWithRuleViolation() { ExceptionDetailInFaults rule = new ExceptionDetailInFaults(); Configuration configuration = ConfigurationLoader.LoadConfiguration("ExceptionDetailInFaults.config"); ProblemCollection problems = rule.Check(configuration); Assert.IsNotNull(problems); Assert.AreEqual(2, problems.Count); Assert.AreEqual(configuration.FilePath, problems[0].SourceFile); }