From e0a7d55457fb4ef7a77666005bfcf4a8c8f7bc9c Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Thu, 14 Jan 2016 20:19:15 -0800 Subject: [PATCH] fixed unit test due to error message change --- .../Test/Semantic/Diagnostics/DiagnosticAnalyzerTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Test/Semantic/Diagnostics/DiagnosticAnalyzerTests.cs b/src/Compilers/CSharp/Test/Semantic/Diagnostics/DiagnosticAnalyzerTests.cs index b8dc4e4df5a..398f203be76 100644 --- a/src/Compilers/CSharp/Test/Semantic/Diagnostics/DiagnosticAnalyzerTests.cs +++ b/src/Compilers/CSharp/Test/Semantic/Diagnostics/DiagnosticAnalyzerTests.cs @@ -896,7 +896,8 @@ public void TestReportingDiagnosticWithInvalidLocation() var anotherCompilation = CreateCompilationWithMscorlib45(source2); var treeInAnotherCompilation = anotherCompilation.SyntaxTrees.Single(); - string message = new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, treeInAnotherCompilation.FilePath), "diagnostic").Message; + string message = new ArgumentException( + string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, AnalyzerWithInvalidDiagnosticLocation.Descriptor.Id, treeInAnotherCompilation.FilePath), "diagnostic").Message; compilation.VerifyDiagnostics(); -- GitLab