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
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 ++ )
You can’t perform that action at this time.
0 commit comments