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

Add tests.

上级 5d7f57b0
......@@ -467,6 +467,44 @@ public async Task TestInField()
bool v = a &&
b &&
c;
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)]
public async Task TestAdditionEnd()
{
await TestEndOfLine(
@"class C {
void Bar() {
var goo = [||]""now"" + ""is"" + ""the"" + ""time"";
}
}",
@"class C {
void Bar() {
var goo = ""now"" +
""is"" +
""the"" +
""time"";
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)]
public async Task TestAdditionBeginning()
{
await TestBeginningOfLine(
@"class C {
void Bar() {
var goo = [||]""now"" + ""is"" + ""the"" + ""time"";
}
}",
@"class C {
void Bar() {
var goo = ""now""
+ ""is""
+ ""the""
+ ""time"";
}
}");
}
}
......
......@@ -443,6 +443,42 @@ end class",
dim v = a andalso
b andalso
c
end class")
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)>
Public Async Function TestAdditionEnd() As Task
Await TestEndOfLine(
"class C
sub Bar()
dim goo = [||]""now"" & ""is"" & ""the"" & ""time""
end sub
end class",
"class C
sub Bar()
dim goo = ""now"" &
""is"" &
""the"" &
""time""
end sub
end class")
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)>
Public Async Function TestAdditionBeginning() As Task
Await TestBeginningOfLine(
"class C
sub Bar()
dim goo = [||]""now"" & ""is"" & ""the"" & ""time""
end sub
end class",
"class C
sub Bar()
dim goo = ""now"" _
& ""is"" _
& ""the"" _
& ""time""
end sub
end class")
End Function
End Class
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册