mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix unit tests
This commit is contained in:
@@ -41,7 +41,10 @@ public class FakeDriver : ConsoleDriver
|
||||
public override bool SupportsTrueColor => false;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void WriteRaw (string ansi) { throw new NotImplementedException (); }
|
||||
public override void WriteRaw (string ansi)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public FakeDriver ()
|
||||
{
|
||||
|
||||
@@ -226,10 +226,8 @@ internal class NetDriver : ConsoleDriver
|
||||
/// <inheritdoc />
|
||||
internal override IAnsiResponseParser GetParser () => _mainLoopDriver._netEvents.Parser;
|
||||
internal NetMainLoop? _mainLoopDriver;
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
|
||||
|
||||
public override MainLoop Init ()
|
||||
{
|
||||
PlatformID p = Environment.OSVersion.Platform;
|
||||
@@ -299,7 +297,6 @@ internal class NetDriver : ConsoleDriver
|
||||
_mainLoopDriver.ProcessInput = ProcessInput;
|
||||
|
||||
return new (_mainLoopDriver);
|
||||
return new MainLoop (_mainLoopDriver);
|
||||
}
|
||||
|
||||
private void ProcessInput (InputResult inputEvent)
|
||||
|
||||
@@ -31,10 +31,7 @@ internal class NetMainLoop : IMainLoopDriver
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull (consoleDriver);
|
||||
|
||||
if (!ConsoleDriver.RunningUnitTests)
|
||||
{
|
||||
_netEvents = new (consoleDriver);
|
||||
}
|
||||
_netEvents = new (consoleDriver);
|
||||
}
|
||||
|
||||
void IMainLoopDriver.Setup (MainLoop mainLoop)
|
||||
|
||||
Reference in New Issue
Block a user