From f72768d8cfcdfcc78005cbd1b3ab4f083d742ca5 Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 7 Dec 2023 15:01:03 +0000 Subject: [PATCH] Revert "Trying to fix TestTreeViewColor again." This reverts commit c2efa8e42e7776f23a8f664746d946506351244b. --- UnitTests/Views/TreeViewTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/UnitTests/Views/TreeViewTests.cs b/UnitTests/Views/TreeViewTests.cs index 5da9f50b3..2e7b0fac2 100644 --- a/UnitTests/Views/TreeViewTests.cs +++ b/UnitTests/Views/TreeViewTests.cs @@ -832,7 +832,6 @@ namespace Terminal.Gui.ViewsTests { Assert.Null (tv.GetObjectRow (n1_2)); Assert.Equal (0, tv.GetObjectRow (n2)); } - [Fact, AutoInitShutdown] public void TestTreeViewColor () { @@ -850,8 +849,8 @@ namespace Terminal.Gui.ViewsTests { tv.Expand (n1); tv.ColorScheme = new ColorScheme (); - Application.Top.Add(tv); - Application.Begin(Application.Top); + tv.LayoutSubviews (); + tv.Draw (); // create a new color scheme var pink = new Attribute (Color.Magenta, Color.Black); @@ -884,7 +883,7 @@ namespace Terminal.Gui.ViewsTests { // redraw now that the custom color // delegate is registered - Application.Refresh(); + tv.Draw (); // Same text TestHelpers.AssertDriverContentsAre (@"