Class FakeComponentFactory
IComponentFactory<T> implementation for fake/mock console I/O used in unit tests. This factory creates instances that simulate console behavior without requiring a real terminal.
public class FakeComponentFactory : ComponentFactory<ConsoleKeyInfo>, IComponentFactory<ConsoleKeyInfo>, IComponentFactory
- Inheritance
-
FakeComponentFactory
- Implements
- Inherited Members
Constructors
- FakeComponentFactory(ConcurrentQueue<ConsoleKeyInfo>?, FakeConsoleOutput?)
Creates a new FakeComponentFactory with optional predefined input and output capture.
Methods
- CreateConsoleSizeMonitor(IConsoleOutput, IOutputBuffer)
Creates IConsoleSizeMonitor class for the current driver implementation i.e. the class responsible for reporting the current size of the terminal.
- CreateInput()
Create IConsoleInput<T> class for the current driver implementation i.e. the class responsible for reading user input from the console.
- CreateInputProcessor(ConcurrentQueue<ConsoleKeyInfo>)
Creates the InputProcessor<T> class for the current driver implementation i.e. the class responsible for translating raw console input into Terminal.Gui common event Key and MouseEventArgs.
- CreateOutput()
Create the IConsoleOutput class for the current driver implementation i.e. the class responsible for rendering IOutputBuffer into the console.