Fixed Dialog/MessageBox tests

This commit is contained in:
Tig
2024-10-02 13:32:32 -06:00
parent a33ef5ad9a
commit 1cfe81a28a
6 changed files with 47 additions and 27 deletions

View File

@@ -1095,7 +1095,7 @@ public class DialogTests
if (iterations == 0)
{
Assert.True (btn1.NewKeyDownEvent (Key.Space));
Assert.False (btn1.NewKeyDownEvent (Key.Space));
}
else if (iterations == 1)
{
@@ -1110,7 +1110,7 @@ public class DialogTests
└───────────────────────┘";
TestHelpers.AssertDriverContentsWithFrameAre (expected, _output);
Assert.True (btn2.NewKeyDownEvent (Key.Space));
Assert.False (btn2.NewKeyDownEvent (Key.Space));
}
else if (iterations == 2)
{
@@ -1127,13 +1127,13 @@ public class DialogTests
_output
);
Assert.True (Top!.NewKeyDownEvent (Key.Enter));
Assert.False (Top!.NewKeyDownEvent (Key.Enter));
}
else if (iterations == 3)
{
TestHelpers.AssertDriverContentsWithFrameAre (expected, _output);
Assert.True (btn3.NewKeyDownEvent (Key.Space));
Assert.False (btn3.NewKeyDownEvent (Key.Space));
}
else if (iterations == 4)
{