2
0
Эх сурвалжийг харах

Fixed unit tests that broke due to rebase

Tig 1 жил өмнө
parent
commit
3888c86ee4

+ 1 - 1
Terminal.Gui/View/Adornment/Adornment.cs

@@ -156,7 +156,7 @@ public class Adornment : View
         Driver.SetAttribute (normalAttr);
         Driver.SetAttribute (normalAttr);
 
 
         // This just draws/clears the thickness, not the insides.
         // 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))
         if (!string.IsNullOrEmpty (TextFormatter.Text))
         {
         {

+ 2 - 2
UnitTests/View/NavigationTests.cs

@@ -1016,14 +1016,14 @@ public class NavigationTests
         screen = top.BoundsToScreen (new (0, 0, 0, 0));
         screen = top.BoundsToScreen (new (0, 0, 0, 0));
         Assert.Equal (4, screen.X);
         Assert.Equal (4, screen.X);
         Assert.Equal (3, screen.Y);
         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 ().X);
         //Assert.Equal (0, found.FrameToScreen ().Y);
         //Assert.Equal (0, found.FrameToScreen ().Y);
         Assert.Equal (new Point (10, 0), top.ScreenToFrame (13, 2));
         Assert.Equal (new Point (10, 0), top.ScreenToFrame (13, 2));
         screen = top.BoundsToScreen (new (10, 0, 0, 0));
         screen = top.BoundsToScreen (new (10, 0, 0, 0));
         Assert.Equal (14, screen.X);
         Assert.Equal (14, screen.X);
         Assert.Equal (3, screen.Y);
         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 (10, found.FrameToScreen ().X);
         //Assert.Equal (0, found.FrameToScreen ().Y);
         //Assert.Equal (0, found.FrameToScreen ().Y);
         Assert.Equal (new Point (11, 1), top.ScreenToFrame (14, 3));
         Assert.Equal (new Point (11, 1), top.ScreenToFrame (14, 3));