Skip to content

Commit eb52bbd

Browse files
committed
added one more test (ref. #4136)
1 parent 79aada4 commit eb52bbd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

RubberduckTests/AutoComplete/SelfClosingPairCompletionTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ public void WhenNextPositionIsClosingChar_ClosingCharMovesSelection()
7070
Assert.AreEqual(expected, result);
7171
}
7272

73+
[Test]
74+
public void WhenNextPositionIsClosingChar_Nested_ClosingCharMovesSelection()
75+
{
76+
var pair = new SelfClosingPair('(', ')');
77+
var input = pair.ClosingChar;
78+
var original = @"foo = MsgBox(""""|)".ToCodeString();
79+
var expected = @"foo = MsgBox("""")|".ToCodeString();
80+
81+
var result = Run(pair, original, input);
82+
Assert.AreEqual(expected, result);
83+
}
84+
7385
[Test]
7486
public void DeletingOpeningCharRemovesPairedClosingChar_Parens()
7587
{

0 commit comments

Comments
 (0)