mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixed more unit tests.
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Terminal.Gui {
|
||||
public void Init_Inits ()
|
||||
{
|
||||
var driver = new FakeDriver ();
|
||||
Application.Init (driver, new NetMainLoop (() => FakeConsole.ReadKey (true)));
|
||||
driver.Init (() => { });
|
||||
|
||||
Assert.Equal (80, Console.BufferWidth);
|
||||
@@ -26,6 +27,7 @@ namespace Terminal.Gui {
|
||||
public void End_Cleans_Up ()
|
||||
{
|
||||
var driver = new FakeDriver ();
|
||||
Application.Init (driver, new NetMainLoop (() => FakeConsole.ReadKey (true)));
|
||||
driver.Init (() => { });
|
||||
|
||||
FakeConsole.ForegroundColor = ConsoleColor.Red;
|
||||
@@ -48,6 +50,7 @@ namespace Terminal.Gui {
|
||||
public void SetColors_Changes_Colors ()
|
||||
{
|
||||
var driver = new FakeDriver ();
|
||||
Application.Init (driver, new NetMainLoop (() => FakeConsole.ReadKey (true)));
|
||||
driver.Init (() => { });
|
||||
Assert.Equal (ConsoleColor.Gray, Console.ForegroundColor);
|
||||
Assert.Equal (ConsoleColor.Black, Console.BackgroundColor);
|
||||
|
||||
Reference in New Issue
Block a user