Browse Source

All tests pass!!!!!!!

Tig Kindel 1 year ago
parent
commit
a9098d5ac2
2 changed files with 6 additions and 6 deletions
  1. 2 2
      UnitTests/Dialogs/DialogTests.cs
  2. 4 4
      UnitTests/Views/LabelTests.cs

+ 2 - 2
UnitTests/Dialogs/DialogTests.cs

@@ -990,7 +990,7 @@ namespace Terminal.Gui.DialogTests {
 					var expected = @$"
 					var expected = @$"
 ┌──────────────────┐
 ┌──────────────────┐
 │┌────────────────┐│
 │┌────────────────┐│
-││23456789  {b}││
+││012345678 ⟦ Ok ⟧││
 │└────────────────┘│
 │└────────────────┘│
 └──────────────────┘";
 └──────────────────┘";
 
 
@@ -1004,7 +1004,7 @@ namespace Terminal.Gui.DialogTests {
 					expected = @$"
 					expected = @$"
 ┌──────────────────┐
 ┌──────────────────┐
 │┌────────────────┐│
 │┌────────────────┐│
-││23456789  {b}││
+││012345678 ⟦ Ok ⟧││
 │└────────────────┘│
 │└────────────────┘│
 └──────────────────┘";
 └──────────────────┘";
 					_ = TestHelpers.AssertDriverContentsWithFrameAre (expected, output);
 					_ = TestHelpers.AssertDriverContentsWithFrameAre (expected, output);

+ 4 - 4
UnitTests/Views/LabelTests.cs

@@ -870,10 +870,10 @@ e
 			Assert.True (lblCenter.AutoSize);
 			Assert.True (lblCenter.AutoSize);
 			Assert.True (lblRight.AutoSize);
 			Assert.True (lblRight.AutoSize);
 			Assert.True (lblJust.AutoSize);
 			Assert.True (lblJust.AutoSize);
-			Assert.Equal (new Rect (0, 0, 2, height), lblLeft.Frame);
-			Assert.Equal (new Rect (3, 0, 2, height), lblCenter.Frame);
-			Assert.Equal (new Rect (6, 0, 2, height), lblRight.Frame);
-			Assert.Equal (new Rect (9, 0, 2, height), lblJust.Frame);
+			Assert.Equal (new Rect (0, 0, 15, height), lblLeft.Frame);
+			Assert.Equal (new Rect (3, 0, 15, height), lblCenter.Frame);
+			Assert.Equal (new Rect (6, 0, 15, height), lblRight.Frame);
+			Assert.Equal (new Rect (9, 0, 15, height), lblJust.Frame);
 			Assert.Equal (new Rect (0, 0, 13, height + 2), frame.Frame);
 			Assert.Equal (new Rect (0, 0, 13, height + 2), frame.Frame);
 
 
 			var expected = @"
 			var expected = @"