提交 7b9fb746 编写于 作者: D Dustin Campbell

Add two unit tests to verify VB smart indentation behavior when arguments span lines

上级 4fa524b4
......@@ -2835,6 +2835,44 @@ End Class"
expectedIndentation:=12)
End Sub
<WorkItem(3293, "https://github.com/dotnet/roslyn/issues/3293")>
<WpfFact, Trait(Traits.Feature, Traits.Features.SmartIndent)>
Public Sub TestSmartIndentInArgumentLists3()
Dim code = "
Class C
Sub M()
Console.WriteLine(""{0} + {1}"",
19, 23 +
19,
End Sub
End Class"
AssertSmartIndent(
code,
indentationLine:=6,
expectedIndentation:=12)
End Sub
<WorkItem(3293, "https://github.com/dotnet/roslyn/issues/3293")>
<WpfFact, Trait(Traits.Feature, Traits.Features.SmartIndent)>
Public Sub TestSmartIndentInArgumentLists4()
Dim code = "
Class C
Sub M()
Console.WriteLine(""{0} + {1}"",
19, 23,
19,
End Sub
End Class"
AssertSmartIndent(
code,
indentationLine:=6,
expectedIndentation:=16)
End Sub
<WorkItem(25323, "https://github.com/dotnet/roslyn/issues/25323")>
<WpfFact, Trait(Traits.Feature, Traits.Features.SmartIndent)>
Public Sub TestSmartIndentAtCaseBlockEndUntabbedComment()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册