From 0d2e332c593191fe520237279ecb8fb68bf83624 Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 16 Jun 2022 19:50:06 +0100 Subject: [PATCH] Fixes view test. --- UnitTests/ViewTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UnitTests/ViewTests.cs b/UnitTests/ViewTests.cs index 560f9d4fe..2b2f09e53 100644 --- a/UnitTests/ViewTests.cs +++ b/UnitTests/ViewTests.cs @@ -2755,8 +2755,10 @@ Y Assert.True(horizontalView.AutoSize); Assert.True(verticalView.AutoSize); - Assert.Equal (new Rect (0, 0, 10, 1), horizontalView.Frame); - Assert.Equal (new Rect (0, 3, 2, 9), verticalView.Frame); + Assert.Equal (new Size (10, 1), horizontalView.TextFormatter.Size); + Assert.Equal (new Size (2, 9), verticalView.TextFormatter.Size); + Assert.Equal (new Rect (0, 0, 9, 1), horizontalView.Frame); + Assert.Equal (new Rect (0, 3, 2, 8), verticalView.Frame); var expected = @" ┌────────────────────┐ │Finish 終 │