Browse Source

Backported tests from #3376

Tig 1 year ago
parent
commit
d89ac68963
2 changed files with 3 additions and 8 deletions
  1. 1 1
      UnitTests/View/Adornment/BorderTests.cs
  2. 2 7
      UnitTests/View/DrawTests.cs

+ 1 - 1
UnitTests/View/Adornment/BorderTests.cs

@@ -501,7 +501,7 @@ public class BorderTests
             case 1:
             case 1:
                 //Assert.Equal (new (0, 0, 17, 0), subview.Frame);
                 //Assert.Equal (new (0, 0, 17, 0), subview.Frame);
                 expected = @"
                 expected = @"
-────────────────────";
+─┤1234├─────────────";
 
 
                 break;
                 break;
             case 2:
             case 2:

+ 2 - 7
UnitTests/View/DrawTests.cs

@@ -428,7 +428,7 @@ public class DrawTests (ITestOutputHelper _output)
 
 
         view.Draw ();
         view.Draw ();
 
 
-        TestHelpers.AssertDriverContentsWithFrameAre (string.Empty, _output);
+        TestHelpers.AssertDriverContentsWithFrameAre ("──", _output);
     }
     }
 
 
     [Fact]
     [Fact]
@@ -497,12 +497,7 @@ public class DrawTests (ITestOutputHelper _output)
 
 
         view.Draw ();
         view.Draw ();
 
 
-        // BUGBUG: Wha? Is this right? Shouldn't it be "└┘"???
-        TestHelpers.AssertDriverContentsWithFrameAre (
-                                                      """
-
-                                                      ┌┐
-                                                      """,
+        TestHelpers.AssertDriverContentsWithFrameAre ("││",
                                                       _output
                                                       _output
                                                      );
                                                      );
     }
     }