Example #1
0
 private void LoadRuleResults(CodeAnalysisResult result)
 {
     foreach (SqlRuleProblem problem in result.Problems)
     {
         if (_rulesToRun == null || _rulesToRun.Exists(x => x.Equals(problem.RuleId)))
         {
             TestSqlRuleProblem actual = new TestSqlRuleProblem(problem.RuleId, problem.StartLine);
             _ActualProblems.Add(actual);
         }
     }
 }
Example #2
0
        public override bool Equals(Object obj)
        {
            TestSqlRuleProblem test = obj as TestSqlRuleProblem;

            if (
                test.RuleId.Equals(this.RuleId, StringComparison.OrdinalIgnoreCase) &&
                test.StartLine == this.StartLine
                )
            {
                return(true);
            }

            return(false);
        }