mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Refactored Application into smaller files.
Made Application #nullable enable
This commit is contained in:
@@ -26,8 +26,8 @@ public class ClipRegionTests
|
||||
{
|
||||
var driver = (ConsoleDriver)Activator.CreateInstance (driverType);
|
||||
Application.Init (driver);
|
||||
Application.Driver.Rows = 25;
|
||||
Application.Driver.Cols = 80;
|
||||
Application.Driver!.Rows = 25;
|
||||
Application.Driver!.Cols = 80;
|
||||
|
||||
driver.Move (0, 0);
|
||||
driver.AddRune ('x');
|
||||
@@ -94,8 +94,8 @@ public class ClipRegionTests
|
||||
{
|
||||
var driver = (ConsoleDriver)Activator.CreateInstance (driverType);
|
||||
Application.Init (driver);
|
||||
Application.Driver.Rows = 10;
|
||||
Application.Driver.Cols = 10;
|
||||
Application.Driver!.Rows = 10;
|
||||
Application.Driver!.Cols = 10;
|
||||
|
||||
// positive
|
||||
Assert.True (driver.IsValidLocation (0, 0));
|
||||
|
||||
@@ -234,7 +234,7 @@ public class ConsoleDriverTests
|
||||
// {
|
||||
// var win = new Window ();
|
||||
// Application.Begin (win);
|
||||
// ((FakeDriver)Application.Driver).SetBufferSize (20, 8);
|
||||
// ((FakeDriver)Application.Driver!).SetBufferSize (20, 8);
|
||||
|
||||
// System.Threading.Tasks.Task.Run (() => {
|
||||
// System.Threading.Tasks.Task.Delay (500).Wait ();
|
||||
|
||||
@@ -123,7 +123,7 @@ public class ConsoleKeyMappingTests
|
||||
if (iterations == 0)
|
||||
{
|
||||
var keyChar = ConsoleKeyMapping.EncodeKeyCharForVKPacket (consoleKeyInfo);
|
||||
Application.Driver.SendKeys (keyChar, ConsoleKey.Packet, shift, alt, control);
|
||||
Application.Driver?.SendKeys (keyChar, ConsoleKey.Packet, shift, alt, control);
|
||||
}
|
||||
};
|
||||
Application.Run ();
|
||||
|
||||
Reference in New Issue
Block a user