Skip to content

Commit a64b339

Browse files
committed
added red test for #4543
1 parent 23625ac commit a64b339

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

RubberduckTests/AutoComplete/CodePaneHandlerTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ public void GivenTrailingWhitespace_IsTrimmedAndPrettifiedCaretIsAtLastCharacter
6464
}
6565

6666
[Test]
67+
[Category("AutoComplete")]
68+
public void GivenPrintToken_PrettifiedCaretIsAtLastCharacter()
69+
{
70+
var original = "debug.? dosomething|".ToCodeString();
71+
var prettified = "Debug.Print DoSomething".ToCodeString();
72+
var expected = "Debug.Print DoSomething|".ToCodeString();
73+
74+
var sut = InitializeSut(original, prettified, out var module, out _);
75+
var actual = new TestCodeString(sut.Prettify(module.Object, original));
76+
77+
Assert.AreEqual(expected, actual);
78+
}
79+
80+
[Test]
6781
[Category("AutoComplete")]
6882
public void GivenExtraWhitespace_PrettifiedCaretStillAtSameToken()
6983
{

0 commit comments

Comments
 (0)