From 17990eeed3e3a325d638e17e07e7c30fac9f5625 Mon Sep 17 00:00:00 2001 From: Thijs Brobbel Date: Sat, 16 Feb 2019 08:08:42 +0100 Subject: [PATCH] Add additional test case for smart indenting, after multi line method calls, as discussed on the PR feedback. --- .../Indentation/SmartIndenterTests.cs | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/EditorFeatures/CSharpTest/Formatting/Indentation/SmartIndenterTests.cs b/src/EditorFeatures/CSharpTest/Formatting/Indentation/SmartIndenterTests.cs index 23637e59d06..df3a6fb0323 100644 --- a/src/EditorFeatures/CSharpTest/Formatting/Indentation/SmartIndenterTests.cs +++ b/src/EditorFeatures/CSharpTest/Formatting/Indentation/SmartIndenterTests.cs @@ -2740,6 +2740,29 @@ public void Test() public void EnterAfterFluentSequences_2() { var code = @"public class Test +{ + public void Test() + { + new List() + .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 { -- GitLab