mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 17:28:01 +01:00
Rename IApplication.Current to TopRunnable
Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -193,7 +193,7 @@ public class MessageBoxTests (ITestOutputHelper output)
|
||||
}
|
||||
else if (iterations == 1)
|
||||
{
|
||||
mbFrame = Application.Current!.Frame;
|
||||
mbFrame = Application.TopRunnable!.Frame;
|
||||
Application.RequestStop ();
|
||||
}
|
||||
}
|
||||
@@ -378,8 +378,8 @@ public class MessageBoxTests (ITestOutputHelper output)
|
||||
{
|
||||
AutoInitShutdownAttribute.RunIteration ();
|
||||
|
||||
Assert.IsType<Dialog> (Application.Current);
|
||||
Assert.Equal (new (height, width), Application.Current.Frame.Size);
|
||||
Assert.IsType<Dialog> (Application.TopRunnable);
|
||||
Assert.Equal (new (height, width), Application.TopRunnable.Frame.Size);
|
||||
|
||||
Application.RequestStop ();
|
||||
}
|
||||
@@ -415,8 +415,8 @@ public class MessageBoxTests (ITestOutputHelper output)
|
||||
{
|
||||
AutoInitShutdownAttribute.RunIteration ();
|
||||
|
||||
Assert.IsType<Dialog> (Application.Current);
|
||||
Assert.Equal (new (height, width), Application.Current.Frame.Size);
|
||||
Assert.IsType<Dialog> (Application.TopRunnable);
|
||||
Assert.Equal (new (height, width), Application.TopRunnable.Frame.Size);
|
||||
|
||||
Application.RequestStop ();
|
||||
}
|
||||
@@ -448,8 +448,8 @@ public class MessageBoxTests (ITestOutputHelper output)
|
||||
{
|
||||
AutoInitShutdownAttribute.RunIteration ();
|
||||
|
||||
Assert.IsType<Dialog> (Application.Current);
|
||||
Assert.Equal (new (height, width), Application.Current.Frame.Size);
|
||||
Assert.IsType<Dialog> (Application.TopRunnable);
|
||||
Assert.Equal (new (height, width), Application.TopRunnable.Frame.Size);
|
||||
|
||||
Application.RequestStop ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user