From 18fbc427028fd9bf961b52cf774c812862dc9e44 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Thu, 22 Oct 2015 15:11:42 +0800 Subject: [PATCH] Add an test to cover the existing code path before this fix. --- .../QuickInfo/SyntacticQuickInfoSourceTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs b/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs index c406debf802..36547567489 100644 --- a/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs +++ b/src/EditorFeatures/CSharpTest/QuickInfo/SyntacticQuickInfoSourceTests.cs @@ -25,6 +25,17 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.QuickInfo { public class SyntacticQuickInfoSourceTests : AbstractQuickInfoSourceTests { + [WpfFact, Trait(Traits.Feature, Traits.Features.QuickInfo)] + public void Brackets_0() + { + TestInMethodAndScript(@" + switch (true) + { + }$$ +", + ExpectedContent("switch (true)\r\n{")); + } + [WpfFact, Trait(Traits.Feature, Traits.Features.QuickInfo)] public void Brackets_1() { -- GitLab