Fixed unit tests that broke due to rebase

This commit is contained in:
Tig
2024-03-06 21:37:22 -07:00
parent 3c3babb7fd
commit 3888c86ee4
2 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ public class Adornment : View
Driver.SetAttribute (normalAttr);
// This just draws/clears the thickness, not the insides.
Thickness.Draw (screenBounds, (string)(Data ?? string.Empty));
Thickness.Draw (screenBounds, ToString ());
if (!string.IsNullOrEmpty (TextFormatter.Text))
{

View File

@@ -1016,14 +1016,14 @@ public class NavigationTests
screen = top.BoundsToScreen (new (0, 0, 0, 0));
Assert.Equal (4, screen.X);
Assert.Equal (3, screen.Y);
Assert.Equal (top, View.FindDeepestView (top, 3, 2));
Assert.Equal (top.Border, View.FindDeepestView (top, 3, 2));
//Assert.Equal (0, found.FrameToScreen ().X);
//Assert.Equal (0, found.FrameToScreen ().Y);
Assert.Equal (new Point (10, 0), top.ScreenToFrame (13, 2));
screen = top.BoundsToScreen (new (10, 0, 0, 0));
Assert.Equal (14, screen.X);
Assert.Equal (3, screen.Y);
Assert.Equal (top, View.FindDeepestView (top, 13, 2));
Assert.Equal (top.Border, View.FindDeepestView (top, 13, 2));
//Assert.Equal (10, found.FrameToScreen ().X);
//Assert.Equal (0, found.FrameToScreen ().Y);
Assert.Equal (new Point (11, 1), top.ScreenToFrame (14, 3));