Skip to content

Commit 8c13999

Browse files
committed
Adding ViTestComplete in an attempt to reproduce a reported exception condition.
1 parent 8643cdc commit 8c13999

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

UnitTestPSReadLine/BasicEditingTest.VI.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ public void ViTestInsertLine()
725725
[TestMethod]
726726
public void ViTestJoinLines()
727727
{
728+
TestSetup(KeyMode.Vi);
729+
728730
Test("", Keys(
729731
"line1", _.Escape, "oline2", CheckThat(() => AssertLineIs("line1\nline2")),
730732
_.Escape, "kJ", CheckThat(() => AssertLineIs("line1 line2")),
@@ -742,5 +744,17 @@ public void ViTestJoinLines()
742744
"uuuu"
743745
));
744746
}
747+
748+
[TestMethod]
749+
public void ViTestComplete()
750+
{
751+
TestSetup(KeyMode.Vi);
752+
753+
Test("ambiguousness", Keys(
754+
"ambag", CheckThat(() => AssertLineIs("ambag")),
755+
_.Escape, "hCig", _.Tab, CheckThat(() => AssertLineIs("ambiguous1")),
756+
_.Escape, "Cness"
757+
));
758+
}
745759
}
746760
}

0 commit comments

Comments
 (0)