提交 de42ded9 编写于 作者: C Cyrus Najmabadi

Add test.

上级 62535b03
......@@ -52,6 +52,23 @@ public async Task TestWithEnoughChunks()
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)]
public async Task TestWithEnoughChunks()
{
await TestAllWrappingCasesAsync(
@"class C {
void Bar() {
[||]the.quick.brown().fox.jumped();
}
}",
@"class C {
void Bar() {
the.quick.brown()
.fox.jumped();
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)]
public async Task TestElementAccess()
{
......@@ -124,6 +141,23 @@ public async Task TestChunkMustHaveDottedSection()
the().quick.brown[1, 2, 3]
.fox.jumped[1][2][3];
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)]
public async Task TrailingNonCallIsNotWrapped()
{
await TestAllWrappingCasesAsync(
@"class C {
void Bar() {
[||]the.quick.brown().fox.jumped().over;
}
}",
@"class C {
void Bar() {
the.quick.brown()
.fox.jumped().over;
}
}");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册