提交 17990eee 编写于 作者: T Thijs Brobbel

Add additional test case for smart indenting,

after multi line method calls, as discussed on the PR feedback.
上级 88c3b5cc
......@@ -2740,6 +2740,29 @@ public void Test()
public void EnterAfterFluentSequences_2()
{
var code = @"public class Test
{
public void Test()
{
new List<DateTime>()
.Where(d => d.Kind == DateTimeKind.Local ||
d.Kind == DateTimeKind.Utc)
.ToArray();
}
}";
AssertSmartIndent(
code: code,
indentationLine: 7,
expectedIndentation: 16);
}
[WpfFact]
[WorkItem(33253, "https://github.com/dotnet/roslyn/issues/33253")]
[Trait(Traits.Feature, Traits.Features.SmartIndent)]
public void EnterAfterFluentSequences_3()
{
var code = @"public class Test
{
public void Test()
{
......@@ -2759,7 +2782,7 @@ public void Test()
[WpfFact]
[WorkItem(33253, "https://github.com/dotnet/roslyn/issues/33253")]
[Trait(Traits.Feature, Traits.Features.SmartIndent)]
public void EnterAfterFluentSequences_3()
public void EnterAfterFluentSequences_4()
{
var code = @"public class Test
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册