More raw string literals

This commit is contained in:
Oleksii Holub
2022-12-08 03:33:10 +02:00
parent 15150cb3ed
commit bd29ad31cc
7 changed files with 73 additions and 74 deletions

View File

@@ -73,9 +73,10 @@ internal class AnalyzerAssertions : ReferenceTypeAssertions<DiagnosticAnalyzer,
if (compilationErrors.Any())
{
throw new InvalidOperationException(
"Failed to compile code." +
Environment.NewLine +
string.Join(Environment.NewLine, compilationErrors.Select(e => e.ToString()))
$"""
Failed to compile code.
{string.Join(Environment.NewLine, compilationErrors.Select(e => e.ToString()))}
"""
);
}