提交 e0a7d554 编写于 作者: H Heejae Chang

fixed unit test due to error message change

上级 eea06571
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册