Skip to content

Commit bbfcb33

Browse files
committed
Fix test to expect Shift
1 parent c1c03cf commit bbfcb33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitTestPSReadLine/KeyInfoConverterTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ public class KeyInfoConverterTest
1313
[TestMethod]
1414
public void TestKeyInfoConverterSimpleCharLiteral()
1515
{
16-
void TestOne(char keyChar, ConsoleKey key)
16+
void TestOne(char keyChar, ConsoleKey key, ConsoleModifiers mods = NoModifiers)
1717
{
1818
var r = ConsoleKeyChordConverter.Convert(keyChar.ToString());
1919
Assert.IsNotNull(r);
2020
Assert.AreEqual(1, r.Length);
2121
Assert.AreEqual(keyChar, r[0].KeyChar);
2222
if (key != 0) Assert.AreEqual(key, r[0].Key);
23-
Assert.AreEqual(NoModifiers, r[0].Modifiers);
23+
Assert.AreEqual(mods, r[0].Modifiers);
2424
}
2525

2626
for (char c = 'a'; c <= 'z'; c++)
@@ -30,7 +30,7 @@ void TestOne(char keyChar, ConsoleKey key)
3030

3131
for (char c = 'A'; c <= 'Z'; c++)
3232
{
33-
TestOne(c, ConsoleKey.A + (c - 'A'));
33+
TestOne(c, ConsoleKey.A + (c - 'A'), ConsoleModifiers.Shift);
3434
}
3535

3636
for (char c = '0'; c <= '9'; c++)

0 commit comments

Comments
 (0)