Class FakeDriver
Implements a mock ConsoleDriver for unit testing
public class FakeDriver : ConsoleDriver, IConsoleDriver
- Inheritance
-
FakeDriver
- Implements
- Inherited Members
Constructors
Fields
Properties
- SupportsTrueColor
Gets whether the ConsoleDriver supports TrueColor output.
Methods
- End()
Ends the execution of the console driver.
- GetCursorVisibility(out CursorVisibility)
Gets the terminal cursor visibility.
- Init()
Initializes the driver
- SendKeys(char, ConsoleKey, bool, bool, bool)
Simulates a key press.
- SetCursorVisibility(CursorVisibility)
Sets the terminal cursor visibility.
- Suspend()
Suspends the application (e.g. on Linux via SIGTSTP) and upon resume, resets the console driver.
- UpdateScreen()
Redraws the physical screen with the contents that have been queued up via any of the printing commands.
- WriteRaw(string)
Provide proper writing to send escape sequence recognized by the ConsoleDriver.