コード例 #1
0
        public void ShouldGetTwoProblemsWithRuleViolation()
        {
            ReplayDetection   rule          = new ReplayDetection();
            Configuration     configuration = ConfigurationLoader.LoadConfiguration("ReplayDetection.config");
            ProblemCollection problems      = rule.Check(configuration);

            Assert.IsNotNull(problems);
            Assert.AreEqual(2, problems.Count);
        }
コード例 #2
0
        public void ShouldGetTwoProblemsWithRuleViolation()
        {
            ReplayDetection rule = new ReplayDetection();
            Configuration configuration = ConfigurationLoader.LoadConfiguration("ReplayDetection.config");
            ProblemCollection problems = rule.Check(configuration);

            Assert.IsNotNull(problems);
            Assert.AreEqual(2, problems.Count);
        }