mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fix all tests.
This commit is contained in:
@@ -1211,7 +1211,7 @@ public class DialogTests
|
||||
if (iterations == 0)
|
||||
{
|
||||
var d = new Dialog { X = 5, Y = 5, Height = 3, Width = 5 };
|
||||
Begin (d);
|
||||
var rs = Begin (d);
|
||||
|
||||
Assert.Equal (new Point (5, 5), (Point)d.Frame.Location);
|
||||
|
||||
@@ -1229,10 +1229,11 @@ public class DialogTests
|
||||
╚══════════════════╝",
|
||||
_output
|
||||
);
|
||||
End (rs);
|
||||
d.Dispose ();
|
||||
|
||||
d = new Dialog { X = 5, Y = 5 };
|
||||
Begin (d);
|
||||
rs = Begin (d);
|
||||
|
||||
// This is because of PostionTopLevels and EnsureVisibleBounds
|
||||
Assert.Equal (new (3, 2), d.Frame.Location);
|
||||
@@ -1268,6 +1269,7 @@ public class DialogTests
|
||||
╚══════════════════╝",
|
||||
_output
|
||||
);
|
||||
End (rs);
|
||||
d.Dispose ();
|
||||
}
|
||||
else if (iterations > 0)
|
||||
|
||||
@@ -125,7 +125,6 @@ public class MessageBoxTests
|
||||
public void Location_Default ()
|
||||
{
|
||||
int iterations = -1;
|
||||
Application.Begin (new ());
|
||||
((FakeDriver)Application.Driver).SetBufferSize (100, 100);
|
||||
|
||||
Application.Iteration += (s, a) =>
|
||||
|
||||
Reference in New Issue
Block a user