fixed WindowsDriver to work in linux unit tests

This commit is contained in:
Tigger Kindel
2023-08-11 13:32:42 -06:00
committed by Tig
parent 411ce95e59
commit 06f7a9898e
4 changed files with 21 additions and 13 deletions

View File

@@ -92,21 +92,18 @@ namespace Terminal.Gui.DriverTests {
}
[Theory]
[InlineData (typeof (FakeDriver), true)]
[InlineData (typeof (NetDriver), false)]
[InlineData (typeof (CursesDriver), true)]
[InlineData (typeof (WindowsDriver), false)]
public void Force16Colors_Sets (Type driverType, bool expectedSetting)
[InlineData (typeof (FakeDriver))]
[InlineData (typeof (NetDriver))]
[InlineData (typeof (CursesDriver))]
[InlineData (typeof (WindowsDriver))]
public void Force16Colors_Sets (Type driverType)
{
var driver = (ConsoleDriver)Activator.CreateInstance (driverType);
driver.Init (() => { });
Assert.Equal (expectedSetting, driver.Force16Colors);
driver.Force16Colors = true;
Assert.True (driver.Force16Colors);
driver.End ();
// Shutdown must be called to safely clean up Application if Init has been called