Fix unit tests

This commit is contained in:
tznind
2024-11-27 13:21:03 +00:00
parent 27b15ec8ee
commit c150cd358e
3 changed files with 6 additions and 9 deletions

View File

@@ -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 ()
{

View File

@@ -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)

View File

@@ -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)