ITestableInput.cs 485 B

123456789101112131415
  1. namespace Terminal.Gui.Drivers;
  2. /// <summary>
  3. /// Marker interface for IInput implementations that support test input injection.
  4. /// </summary>
  5. /// <typeparam name="TInputRecord">The input record type</typeparam>
  6. public interface ITestableInput<TInputRecord> : IInput<TInputRecord>
  7. where TInputRecord : struct
  8. {
  9. /// <summary>
  10. /// Adds an input record that will be returned by Peek/Read for testing.
  11. /// </summary>
  12. void AddInput (TInputRecord input);
  13. }