mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Rename IApplication.Current to TopRunnable
Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ public class GuiTestContextTests (ITestOutputHelper outputHelper)
|
||||
public void With_New_A_Runs (TestDriver d)
|
||||
{
|
||||
using GuiTestContext context = With.A<Window> (40, 10, d, _out);
|
||||
Assert.True (context.App!.Current!.Running);
|
||||
Assert.True (context.App!.TopRunnable!.Running);
|
||||
Assert.NotEqual (Rectangle.Empty, context.App!.Screen);
|
||||
}
|
||||
|
||||
@@ -54,9 +54,9 @@ public class GuiTestContextTests (ITestOutputHelper outputHelper)
|
||||
using GuiTestContext context = With.A<Window> (10, 3, d, _out)
|
||||
.Then ((app) =>
|
||||
{
|
||||
app.Current!.BorderStyle = LineStyle.None;
|
||||
app.Current!.Border!.Thickness = Thickness.Empty;
|
||||
app.Current.Text = "hello";
|
||||
app.TopRunnable!.BorderStyle = LineStyle.None;
|
||||
app.TopRunnable!.Border!.Thickness = Thickness.Empty;
|
||||
app.TopRunnable.Text = "hello";
|
||||
})
|
||||
.ScreenShot ("ScreenShot", _out)
|
||||
.AnsiScreenShot ("AnsiScreenShot", _out)
|
||||
|
||||
Reference in New Issue
Block a user