Ejemplo n.º 1
0
        public void Smell_detector_sanity_check(string[] sourceCode, int expectedIssues)
        {
            var detectionService = new SmellDetectorService();
            var report           = detectionService.AnalyzeCodeQuality(sourceCode);

            report.IssuesForCodeSnippet.Count().ShouldBe(expectedIssues);
        }
Ejemplo n.º 2
0
 public CaDETQualityAnalyzer(IAdviceRepository adviceRepository, IInstructor instructor)
 {
     _adviceRepository     = adviceRepository;
     _instructor           = instructor;
     _smellDetectorService = new SmellDetectorService();
 }