提交 51dc73bd 编写于 作者: P Paul Chen

Move tests.

上级 94a20be8
......@@ -414,117 +414,5 @@ public async Task SuggestEventAfterReadonlyInStruct()
";
await VerifyItemExistsAsync(markup, "event");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForRefLoop0()
{
var markup =
@"class C {
void F() {
for (ref $$
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForRefLoop1()
{
var markup =
@"class C {
void F() {
for (ref v$$
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForRefReadonlyLoop0()
{
var markup =
@"class C {
void F() {
for (ref readonly $$
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForRefReadonlyLoop1()
{
var markup =
@"class C {
void F() {
for (ref readonly v$$
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForEachRefLoop0()
{
var markup =
@"class C {
void F() {
foreach (ref $$
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForEachRefLoop1()
{
var markup =
@"class C {
void F() {
foreach (ref $$ x
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForEachRefLoop2()
{
var markup =
@"class C {
void F() {
foreach (ref v$$ x
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task SuggestVarInForEachRefReadonlyLoop0()
{
var markup =
@"class C {
void F() {
foreach (ref readonly $$ x
}
}
";
await VerifyItemExistsAsync(markup, "var");
}
}
}
......@@ -220,6 +220,70 @@ public async Task TestNotInAwaitForEach()
@"await foreach (var $$"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForEachRefLoop0()
{
await VerifyKeywordAsync(AddInsideMethod(
@"foreach (ref $$"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForEachRefLoop1()
{
await VerifyKeywordAsync(AddInsideMethod(
@"foreach (ref $$ x"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForEachRefLoop2()
{
await VerifyKeywordAsync(AddInsideMethod(
@"foreach (ref v$$ x"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForEachRefReadonlyLoop0()
{
await VerifyKeywordAsync(AddInsideMethod(
@"foreach (ref readonly $$ x"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForRefLoop0()
{
await VerifyKeywordAsync(AddInsideMethod(
@"for (ref $$"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForRefLoop1()
{
await VerifyKeywordAsync(AddInsideMethod(
@"for (ref v$$"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForRefReadonlyLoop0()
{
await VerifyKeywordAsync(AddInsideMethod(
@"for (ref readonly $$"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
[WorkItem(37223, "https://github.com/dotnet/roslyn/issues/37223")]
public async Task TestInForRefReadonlyLoop1()
{
await VerifyKeywordAsync(AddInsideMethod(
@"for (ref readonly v$$"));
}
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestInUsing()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册