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
@@ -393,46 +390,46 @@ private static string GetMismatchNumberOfDiagnosticsMessage(int expectedCount, i
393
390
$"Mismatch between number of diagnostics returned, expected \"{expectedCount}\" actual \"{actualCount}\"{Environment.NewLine}{Environment.NewLine}Diagnostics:{Environment.NewLine}{diagnosticsOutput}{Environment.NewLine}";
$"Expected {expected.Locations.Length-1} additional locations but got {additionalLocations.Length} for Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{actual})}{Environment.NewLine}";
399
+
$"Expected {expected.Locations.Length-1} additional locations but got {additionalLocations.Length} for Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[actual])}{Environment.NewLine}";
$"Expected diagnostic id to be \"{expected.Id}\" was \"{actual.Id}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{actual})}{Environment.NewLine}";
404
+
$"Expected diagnostic id to be \"{expected.Id}\" was \"{actual.Id}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[actual])}{Environment.NewLine}";
$"Expected diagnostic severity to be \"{expected.Severity}\" was \"{actual.Severity}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{actual})}{Environment.NewLine}";
409
+
$"Expected diagnostic severity to be \"{expected.Severity}\" was \"{actual.Severity}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[actual])}{Environment.NewLine}";
$"Expected diagnostic message to be \"{expected.Message}\" was \"{actual.GetMessage()}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{actual})}{Environment.NewLine}";
414
+
$"Expected diagnostic message to be \"{expected.Message}\" was \"{actual.GetMessage()}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[actual])}{Environment.NewLine}";
$"Expected diagnostic to start at column \"{expected.Column}\" was actually at column \"{actualLinePosition.Character+1}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{diagnostic})}{Environment.NewLine}";
420
+
$"Expected diagnostic to start at column \"{expected.Column}\" was actually at column \"{actualLinePosition.Character+1}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[diagnostic])}{Environment.NewLine}";
$"Expected diagnostic to be on line \"{expected.Line}\" was actually on line \"{actualLinePosition.Line+1}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{diagnostic})}{Environment.NewLine}";
426
+
$"Expected diagnostic to be on line \"{expected.Line}\" was actually on line \"{actualLinePosition.Line+1}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[diagnostic])}{Environment.NewLine}";
$"Expected diagnostic to be in file \"{expected.Path}\" was actually in file \"{actualSpan.Path}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,new[]{diagnostic})}{Environment.NewLine}";
432
+
$"Expected diagnostic to be in file \"{expected.Path}\" was actually in file \"{actualSpan.Path}\"{Environment.NewLine}{Environment.NewLine}Diagnostic:{Environment.NewLine}{FormatDiagnostics(analyzer,[diagnostic])}{Environment.NewLine}";
436
433
437
434
/// <summary>
438
435
/// Helper method to format a Diagnostic into an easily readable string
0 commit comments