Пример #1
0
        public void EndToEndAnalysisWithNoIssues()
        {
            RunLog runLog = AnalyzeFile(this.GetType().Assembly.Location);

            int issueCount = 0;

            SarifHelpers.ValidateRunLog(runLog, (issue) => { issueCount++; });
            Assert.Equal(1, issueCount);
        }
Пример #2
0
        public void AnalyzeCommand_EndToEndAnalysisWithNoIssues()
        {
            Run run = AnalyzeFile(this.GetType().Assembly.Location);

            int resultCount = 0;

            SarifHelpers.ValidateRun(run, (issue) => { resultCount++; });
            Assert.Equal(1, resultCount);
        }