Пример #1
0
        public static void VerifyDiagnostics <T>(string filePath, params DiagnosticResult[] expected)
            where T : DiagnosticAnalyzer, new()
        {
            var analyzer    = new T();
            var diagnostics = DiagnosticsGenerator.GetSortedDiagnostics(filePath, analyzer, SettingsFile);

            VerifyDiagnosticResults(diagnostics, analyzer, expected);
        }