Rename IApplication.Current to TopRunnable

Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-20 19:34:48 +00:00
parent 16b42e86fd
commit 4b975fd5b7
90 changed files with 916 additions and 820 deletions

View File

@@ -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)