C# Class ArgsTests.CLI.CliKeyboardInputQueue

Show file Open project: adamabdelhamed/PowerArgs Class Usage Examples

Public Methods

Method Description
CliKeyboardInputQueue ( bool simulateRealUser = false ) : System
Enqueue ( ConsoleKey key ) : void
Enqueue ( ConsoleKeyInfo key ) : void
Enqueue ( string input ) : void
EnqueueDelay ( System.TimeSpan delay ) : void
ReadKey ( ) : ConsoleKeyInfo
SimulateUserNow ( ) : void

Method Details

CliKeyboardInputQueue() public method

public CliKeyboardInputQueue ( bool simulateRealUser = false ) : System
simulateRealUser bool
return System

Enqueue() public method

public Enqueue ( ConsoleKey key ) : void
key ConsoleKey
return void

Enqueue() public method

public Enqueue ( ConsoleKeyInfo key ) : void
key System.ConsoleKeyInfo
return void

Enqueue() public method

public Enqueue ( string input ) : void
input string
return void

EnqueueDelay() public method

public EnqueueDelay ( System.TimeSpan delay ) : void
delay System.TimeSpan
return void

ReadKey() public method

public ReadKey ( ) : ConsoleKeyInfo
return System.ConsoleKeyInfo

SimulateUserNow() public method

public SimulateUserNow ( ) : void
return void