Fixed BorderTests

This commit is contained in:
Tig
2024-05-30 10:47:52 -06:00
parent 349f1f6459
commit 94ce28012e
8 changed files with 191 additions and 196 deletions

View File

@@ -93,13 +93,10 @@ public class CheckBoxTests (ITestOutputHelper output)
}
[Fact]
[AutoInitShutdown]
[SetupFakeDriver]
public void AllowNullChecked_Get_Set ()
{
var checkBox = new CheckBox { Text = "Check this out 你" };
Toplevel top = new ();
top.Add (checkBox);
Application.Begin (top);
Assert.False (checkBox.Checked);
Assert.True (checkBox.NewKeyDownEvent (Key.Space));
@@ -110,7 +107,7 @@ public class CheckBoxTests (ITestOutputHelper output)
checkBox.AllowNullChecked = true;
Assert.True (checkBox.NewKeyDownEvent (Key.Space));
Assert.Null (checkBox.Checked);
Application.Refresh ();
checkBox.Draw();
TestHelpers.AssertDriverContentsWithFrameAre (
@$"
@@ -126,7 +123,6 @@ public class CheckBoxTests (ITestOutputHelper output)
checkBox.AllowNullChecked = false;
Assert.False (checkBox.Checked);
top.Dispose ();
}
[Fact]