Skip to content

Commit

Permalink
Trying to fix TestTreeViewColor again.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Dec 7, 2023
1 parent 5cbc5a9 commit c2efa8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions UnitTests/Views/TreeViewTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ public void TestGetObjectRow ()
Assert.Null (tv.GetObjectRow (n1_2));
Assert.Equal (0, tv.GetObjectRow (n2));
}

[Fact, AutoInitShutdown]
public void TestTreeViewColor ()
{
Expand All @@ -849,8 +850,8 @@ public void TestTreeViewColor ()
tv.Expand (n1);

tv.ColorScheme = new ColorScheme ();
tv.LayoutSubviews ();
tv.Draw ();
Application.Top.Add(tv);
Application.Begin(Application.Top);

// create a new color scheme
var pink = new Attribute (Color.Magenta, Color.Black);
Expand Down Expand Up @@ -883,7 +884,7 @@ public void TestTreeViewColor ()

// redraw now that the custom color
// delegate is registered
tv.Draw ();
Application.Refresh();

// Same text
TestHelpers.AssertDriverContentsAre (@"
Expand Down

0 comments on commit c2efa8e

Please sign in to comment.