提交 60dfcd26 编写于 作者: B Brett Forsgren

use localized resources in unit tests

also undo an eager localization of a string
上级 ba88129b
......@@ -769,7 +769,7 @@ class Foo
var active = GetActiveStatements(src1, src2);
edits.VerifyRudeDiagnostics(active,
Diagnostic(RudeEditKind.Renamed, "int b", FeaturesResources.Parameter));
Diagnostic(RudeEditKind.Renamed, "int b", "parameter"));
}
[WorkItem(742334)]
......@@ -818,7 +818,7 @@ class Foo
var active = GetActiveStatements(src1, src2);
edits.VerifyRudeDiagnostics(active,
Diagnostic(RudeEditKind.InitializerUpdate, "int a = 42", FeaturesResources.Parameter));
Diagnostic(RudeEditKind.InitializerUpdate, "int a = 42", "parameter"));
}
[WorkItem(742334)]
......
......@@ -4355,8 +4355,8 @@ void F()
var edits = GetTopEdits(src1, src2);
edits.VerifySemanticDiagnostics(
Diagnostic(RudeEditKind.ChangingQueryLambdaType, "from", "from clause"),
Diagnostic(RudeEditKind.ChangingQueryLambdaType, "select", "select clause"));
Diagnostic(RudeEditKind.ChangingQueryLambdaType, "from", CSharpFeaturesResources.FromClause),
Diagnostic(RudeEditKind.ChangingQueryLambdaType, "select", CSharpFeaturesResources.SelectClause));
}
[Fact]
......
......@@ -2465,7 +2465,7 @@ public Task<int> WaitAsync()
}";
var edits = GetTopEdits(src1, src2);
edits.VerifyRudeDiagnostics(
Diagnostic(RudeEditKind.Delete, "await", "await expression"));
Diagnostic(RudeEditKind.Delete, "await", CSharpFeaturesResources.AwaitExpression));
}
[Fact]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册