Class FakeConsoleInput
Fake console input for testing that can return predefined input or wait indefinitely.
public class FakeConsoleInput : ConsoleInput<ConsoleKeyInfo>, IConsoleInput<ConsoleKeyInfo>, IDisposable
- Inheritance
-
FakeConsoleInput
- Implements
- Inherited Members
Constructors
- FakeConsoleInput(ConcurrentQueue<ConsoleKeyInfo>?)
Creates a new FakeConsoleInput with optional predefined input.
Methods
- Peek()
When implemented in a derived class, returns true if there is data available to read from console.