You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$"Mismatch between number of diagnostics returned, expected \"{expectedCount}\" actual \"{actualCount}\"\r\n\r\nDiagnostics:\r\n{diagnosticsOutput}\r\n");
72
+
Assert.Fail($"Mismatch between number of diagnostics returned, expected \"{expectedCount}\" actual \"{actualCount}\"\r\n\r\nDiagnostics:\r\n{diagnosticsOutput}\r\n");
$"Expected {expected.Locations.Count-1} additional locations but got {additionalLocations.Length} for Diagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
94
+
Assert.Fail($"Expected {expected.Locations.Count-1} additional locations but got {additionalLocations.Length} for Diagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
$"Expected diagnostic id to be \"{expected.Id}\" was \"{actual.Id}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
105
+
Assert.Fail($"Expected diagnostic id to be \"{expected.Id}\" was \"{actual.Id}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
110
106
}
111
107
112
108
if(actual.Severity!=expected.Severity)
113
109
{
114
-
Assert.True(false,
115
-
$"Expected diagnostic severity to be \"{expected.Severity}\" was \"{actual.Severity}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
110
+
Assert.Fail($"Expected diagnostic severity to be \"{expected.Severity}\" was \"{actual.Severity}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
$"Expected diagnostic message to be \"{expected.Message}\" was \"{actual.GetMessage(CultureInfo.InvariantCulture)}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
115
+
Assert.Fail($"Expected diagnostic message to be \"{expected.Message}\" was \"{actual.GetMessage(CultureInfo.InvariantCulture)}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,actual)}\r\n");
$"Expected diagnostic to be on line \"{expected.Line}\" was actually on line \"{actualLinePosition.Line+1}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,diagnostic)}\r\n");
141
+
Assert.Fail($"Expected diagnostic to be on line \"{expected.Line}\" was actually on line \"{actualLinePosition.Line+1}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,diagnostic)}\r\n");
$"Expected diagnostic to start at column \"{expected.Column}\" was actually at column \"{actualLinePosition.Character+1}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,diagnostic)}\r\n");
150
+
Assert.Fail($"Expected diagnostic to start at column \"{expected.Column}\" was actually at column \"{actualLinePosition.Character+1}\"\r\n\r\nDiagnostic:\r\n{FormatDiagnostics(analyzer,diagnostic)}\r\n");
0 commit comments