private static void Check( ConsoleKey key, Action <IConsoleLineInput> expectedCalls, Action <IConsoleLineInput> inputSetup = null, ConsoleInputOperationResult expectedResult = ConsoleInputOperationResult.Normal) { Check(key.ToKeyInfo(), expectedCalls, inputSetup, expectedResult); }
public static IEnumerable <ConsoleKeyInfo> AsInfo(this ConsoleKey key) { yield return(key.ToKeyInfo()); }