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