Browse Source

Fix unit test.

BDisp 10 tháng trước cách đây
mục cha
commit
ad4f6c49e1
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

+ 5 - 1
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

@@ -1648,7 +1648,11 @@ internal class WindowsDriver : ConsoleDriver
         _mainLoopDriver.WinChanged = ChangeWin;
 #endif
 
-        WinConsole?.SetInitialCursorVisibility ();
+        if (!RunningUnitTests)
+        {
+            WinConsole?.SetInitialCursorVisibility ();
+        }
+
         return new MainLoop (_mainLoopDriver);
     }