mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Rebased onto v2_2491-Overlapped
This commit is contained in:
@@ -10,6 +10,7 @@ public class ApplicationTests
|
||||
{
|
||||
_output = output;
|
||||
ConsoleDriver.RunningUnitTests = true;
|
||||
ConfigurationManager.Locations = ConfigurationManager.ConfigLocations.None;
|
||||
|
||||
#if DEBUG_IDISPOSABLE
|
||||
Responder.Instances.Clear ();
|
||||
@@ -312,7 +313,7 @@ public class ApplicationTests
|
||||
Assert.False (Application._forceFakeConsole);
|
||||
Assert.Equal (-1, Application.MainThreadId);
|
||||
Assert.Empty (Application.TopLevels);
|
||||
Assert.Null (Application.MouseEnteredView);
|
||||
Assert.Empty (Application._cachedViewsUnderMouse);
|
||||
|
||||
// Keyboard
|
||||
Assert.Empty (Application.GetViewKeyBindings ());
|
||||
@@ -342,7 +343,7 @@ public class ApplicationTests
|
||||
Application.MainThreadId = 1;
|
||||
|
||||
//Application._topLevels = new List<Toplevel> ();
|
||||
Application.MouseEnteredView = new ();
|
||||
Application._cachedViewsUnderMouse.Clear ();
|
||||
|
||||
//Application.SupportedCultures = new List<CultureInfo> ();
|
||||
Application.Force16Colors = true;
|
||||
@@ -356,7 +357,7 @@ public class ApplicationTests
|
||||
|
||||
//ApplicationOverlapped.OverlappedChildren = new List<View> ();
|
||||
//ApplicationOverlapped.OverlappedTop =
|
||||
Application.MouseEnteredView = new ();
|
||||
Application._cachedViewsUnderMouse.Clear ();
|
||||
|
||||
//Application.WantContinuousButtonPressedView = new View ();
|
||||
|
||||
@@ -392,6 +393,12 @@ public class ApplicationTests
|
||||
#endif
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Shutdown_Alone_Does_Nothing ()
|
||||
{
|
||||
Application.Shutdown ();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData (typeof (FakeDriver))]
|
||||
[InlineData (typeof (NetDriver))]
|
||||
|
||||
Reference in New Issue
Block a user