mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Changes before error encountered
Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -98,6 +98,7 @@ public class FakeDriver : ConsoleDriver
|
||||
_cols = FakeConsole.WindowWidth = FakeConsole.BufferWidth = FakeConsole.WIDTH;
|
||||
_rows = FakeConsole.WindowHeight = FakeConsole.BufferHeight = FakeConsole.HEIGHT;
|
||||
FakeConsole.Clear ();
|
||||
ClearContents ();
|
||||
ResizeScreen ();
|
||||
CurrentAttribute = new Attribute (Color.White, Color.Black);
|
||||
}
|
||||
|
||||
@@ -25,8 +25,9 @@ public class ClipRegionTests
|
||||
public void AddRune_Is_Clipped (Type driverType)
|
||||
{
|
||||
var driver = (IConsoleDriver)Activator.CreateInstance (driverType);
|
||||
driver.Init ();
|
||||
driver.SetScreenSize (80, 25);
|
||||
Application.Init (driver);
|
||||
Application.Driver!.SetScreenSize (80, 25);
|
||||
|
||||
driver.Move (0, 0);
|
||||
driver.AddRune ('x');
|
||||
|
||||
@@ -9,7 +9,7 @@ public class MarginTests (ITestOutputHelper output)
|
||||
[SetupFakeDriver]
|
||||
public void Margin_Is_Transparent ()
|
||||
{
|
||||
((IFakeConsoleDriver)Application.Driver!).SetBufferSize (5, 5);
|
||||
Application.Driver!.SetScreenSize (5, 5);
|
||||
|
||||
var view = new View { Height = 3, Width = 3 };
|
||||
view.Margin!.Diagnostics = ViewDiagnosticFlags.Thickness;
|
||||
@@ -44,7 +44,7 @@ public class MarginTests (ITestOutputHelper output)
|
||||
[SetupFakeDriver]
|
||||
public void Margin_ViewPortSettings_Not_Transparent_Is_NotTransparent ()
|
||||
{
|
||||
((IFakeConsoleDriver)Application.Driver!).SetBufferSize (5, 5);
|
||||
Application.Driver!.SetScreenSize (5, 5);
|
||||
|
||||
var view = new View { Height = 3, Width = 3 };
|
||||
view.Margin!.Diagnostics = ViewDiagnosticFlags.Thickness;
|
||||
|
||||
@@ -9,7 +9,7 @@ public class PaddingTests (ITestOutputHelper output)
|
||||
[SetupFakeDriver]
|
||||
public void Padding_Uses_Parent_Scheme ()
|
||||
{
|
||||
((IFakeConsoleDriver)Application.Driver!).SetBufferSize (5, 5);
|
||||
Application.Driver!.SetScreenSize (5, 5);
|
||||
var view = new View { Height = 3, Width = 3 };
|
||||
view.Padding!.Thickness = new (1);
|
||||
view.Padding.Diagnostics = ViewDiagnosticFlags.Thickness;
|
||||
|
||||
@@ -171,7 +171,7 @@ public class ClipTests (ITestOutputHelper _output)
|
||||
[Trait ("Category", "Unicode")]
|
||||
public void Clipping_Wide_Runes ()
|
||||
{
|
||||
((IFakeConsoleDriver)Application.Driver!).SetBufferSize (30, 1);
|
||||
Application.Driver!.SetScreenSize (30, 1);
|
||||
|
||||
var top = new View
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user