namespace UnitTests; /// /// Enables tests to create a FakeDriver for testing purposes. /// [Collection ("Global Test Setup")] public abstract class FakeDriverBase/* : IDisposable*/ { /// /// Creates a new FakeDriver instance with the specified buffer size. /// This is a convenience method for tests that need to use Draw() and DriverAssert /// without relying on Application.Driver. /// /// Width of the driver buffer /// Height of the driver buffer /// A configured IFakeDriver instance protected static IDriver CreateFakeDriver (int width = 80, int height = 25) { var output = new FakeOutput (); DriverImpl driver = new ( new FakeInputProcessor (null), new OutputBufferImpl (), output, new AnsiRequestScheduler (new AnsiResponseParser ()), new SizeMonitorImpl (output)); driver.SetScreenSize (width, height); return driver; } ///// //public void Dispose () //{ // Application.ResetState (true); //} }