提交 2e055311 编写于 作者: R Ravi Chande

CR feedback: Seperate out description test, resource naming

上级 5d726543
......@@ -37,7 +37,7 @@ public class MyClass
MyClass $$
}
";
await VerifyItemExistsAsync(markup, "MyClass", glyph: (int)Glyph.MethodPublic, expectedDescriptionOrNull: CSharpFeaturesResources.suggested_name);
await VerifyItemExistsAsync(markup, "MyClass", glyph: (int)Glyph.MethodPublic);
await VerifyItemExistsAsync(markup, "myClass", glyph: (int)Glyph.FieldPublic);
await VerifyItemExistsAsync(markup, "GetMyClass", glyph: (int)Glyph.MethodPublic);
}
......@@ -441,5 +441,17 @@ void foo()
";
await VerifyNoItemsExistAsync(markup);
}
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TestDescription()
{
var markup = @"
public class MyClass
{
MyClass $$
}
";
await VerifyItemExistsAsync(markup, "MyClass", glyph: (int)Glyph.MethodPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name);
}
}
}
......@@ -983,9 +983,9 @@ internal class CSharpFeaturesResources {
/// <summary>
/// Looks up a localized string similar to (Suggested name).
/// </summary>
internal static string suggested_name {
internal static string Suggested_name {
get {
return ResourceManager.GetString("suggested_name", resourceCulture);
return ResourceManager.GetString("Suggested_name", resourceCulture);
}
}
......
......@@ -521,7 +521,7 @@
<data name="Autoselect_disabled_due_to_member_declaration" xml:space="preserve">
<value>Autoselect disabled due to member declaration</value>
</data>
<data name="suggested_name" xml:space="preserve">
<data name="Suggested_name" xml:space="preserve">
<value>(Suggested name)</value>
</data>
</root>
\ No newline at end of file
......@@ -196,7 +196,7 @@ CompletionItem CreateCompletionItem(string name, Glyph glyph, string sortText)
CompletionItemRules.Default,
glyph: glyph,
sortText: sortText,
description: CSharpFeaturesResources.suggested_name.ToSymbolDisplayParts());
description: CSharpFeaturesResources.Suggested_name.ToSymbolDisplayParts());
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册