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

@@ -15,11 +15,11 @@ public class CheckBoxTests (ITestOutputHelper output)
[Fact]
public void Commands_Select ()
{
Application.Current = new ();
Application.TopRunnable = new ();
View otherView = new () { CanFocus = true };
var ckb = new CheckBox ();
Application.Current.Add (ckb, otherView);
Application.Current.SetFocus ();
Application.TopRunnable.Add (ckb, otherView);
Application.TopRunnable.SetFocus ();
Assert.True (ckb.HasFocus);
var checkedStateChangingCount = 0;
@@ -63,7 +63,7 @@ public class CheckBoxTests (ITestOutputHelper output)
Assert.Equal (3, selectCount);
Assert.Equal (1, acceptCount);
Application.Current.Dispose ();
Application.TopRunnable.Dispose ();
Application.ResetState ();
}