File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ public class KeyInfoConverterTest
13
13
[ TestMethod ]
14
14
public void TestKeyInfoConverterSimpleCharLiteral ( )
15
15
{
16
- void TestOne ( char keyChar , ConsoleKey key )
16
+ void TestOne ( char keyChar , ConsoleKey key , ConsoleModifiers mods = NoModifiers )
17
17
{
18
18
var r = ConsoleKeyChordConverter . Convert ( keyChar . ToString ( ) ) ;
19
19
Assert . IsNotNull ( r ) ;
20
20
Assert . AreEqual ( 1 , r . Length ) ;
21
21
Assert . AreEqual ( keyChar , r [ 0 ] . KeyChar ) ;
22
22
if ( key != 0 ) Assert . AreEqual ( key , r [ 0 ] . Key ) ;
23
- Assert . AreEqual ( NoModifiers , r [ 0 ] . Modifiers ) ;
23
+ Assert . AreEqual ( mods , r [ 0 ] . Modifiers ) ;
24
24
}
25
25
26
26
for ( char c = 'a' ; c <= 'z' ; c ++ )
@@ -30,7 +30,7 @@ void TestOne(char keyChar, ConsoleKey key)
30
30
31
31
for ( char c = 'A' ; c <= 'Z' ; c ++ )
32
32
{
33
- TestOne ( c , ConsoleKey . A + ( c - 'A' ) ) ;
33
+ TestOne ( c , ConsoleKey . A + ( c - 'A' ) , ConsoleModifiers . Shift ) ;
34
34
}
35
35
36
36
for ( char c = '0' ; c <= '9' ; c ++ )
You can’t perform that action at this time.
0 commit comments