提交 eaea0355 编写于 作者: P Paul Harrington

Merge pull request #1714 from DickvdBrink/fix-dutch-locale

Fix unittest DiagnosticAnalyzerTest for dutch locales
......@@ -950,14 +950,13 @@ public void TestReportingUnsupportedDiagnostic()
{
string source = @"";
var analyzers = new DiagnosticAnalyzer[] { new AnalyzerReportingUnsupportedDiagnostic() };
string message = new ArgumentException("Reported diagnostic with ID 'ID_2' is not supported by the analyzer.", "diagnostic").Message;
CreateCompilationWithMscorlib45(source)
.VerifyDiagnostics()
.VerifyAnalyzerDiagnostics(analyzers, null, null, logAnalyzerExceptionAsDiagnostics: true,
expected: Diagnostic("AD0001")
.WithArguments("Microsoft.CodeAnalysis.CSharp.UnitTests.DiagnosticAnalyzerTests+AnalyzerReportingUnsupportedDiagnostic",
@"Reported diagnostic with ID 'ID_2' is not supported by the analyzer.
Parameter name: diagnostic")
.WithArguments("Microsoft.CodeAnalysis.CSharp.UnitTests.DiagnosticAnalyzerTests+AnalyzerReportingUnsupportedDiagnostic", message)
.WithLocation(1, 1));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册