Skip to content

Commit

Permalink
Fix test to expect Shift
Browse files Browse the repository at this point in the history
  • Loading branch information
lzybkr committed Dec 6, 2017
1 parent c1c03cf commit bbfcb33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UnitTestPSReadLine/KeyInfoConverterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public class KeyInfoConverterTest
[TestMethod]
public void TestKeyInfoConverterSimpleCharLiteral()
{
void TestOne(char keyChar, ConsoleKey key)
void TestOne(char keyChar, ConsoleKey key, ConsoleModifiers mods = NoModifiers)
{
var r = ConsoleKeyChordConverter.Convert(keyChar.ToString());
Assert.IsNotNull(r);
Assert.AreEqual(1, r.Length);
Assert.AreEqual(keyChar, r[0].KeyChar);
if (key != 0) Assert.AreEqual(key, r[0].Key);
Assert.AreEqual(NoModifiers, r[0].Modifiers);
Assert.AreEqual(mods, r[0].Modifiers);
}

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

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

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

0 comments on commit bbfcb33

Please sign in to comment.