Class TestInputSource
Test input source - provides pre-programmed input for testing.
public class TestInputSource : IInputSource
- Inheritance
-
TestInputSource
- Implements
- Inherited Members
Constructors
- TestInputSource(ITimeProvider)
Initializes a new instance of the TestInputSource class.
Properties
- IsAvailable
Check if input is available without consuming it.
- TimeProvider
Time provider for timestamps and timing.
Methods
- Enqueue(InputEventRecord)
Adds input to the queue. Called by InputInjector.
- ReadAvailable()
Reads all available input synchronously. Called by InputProcessor on the main loop thread.
- Start(CancellationToken)
Starts background input reading (for production implementations). Test implementations typically don't need this.
- Stop()
Stops background input reading.