public static GetSortedDiagnostics ( string filePath, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer analyzer, string settingsPath ) : IOrderedEnumerable |
||
filePath | string | |
analyzer | Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer | |
settingsPath | string | |
return | IOrderedEnumerable |
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); }