Fixed TreeTableSourceTests

This commit is contained in:
Tig
2024-05-30 10:00:48 -06:00
parent 82a1397978
commit dae84a2864

View File

@@ -26,9 +26,10 @@ public class TreeTableSourceTests : IDisposable
}
[Fact]
[AutoInitShutdown]
[SetupFakeDriver]
public void TestTreeTableSource_BasicExpanding_WithKeyboard ()
{
((FakeDriver)Application.Driver).SetBufferSize (100, 100);
TableView tv = GetTreeTable (out _);
tv.Style.GetOrCreateColumnStyle (1).MinAcceptableWidth = 1;
@@ -84,9 +85,11 @@ public class TreeTableSourceTests : IDisposable
}
[Fact]
[AutoInitShutdown]
[SetupFakeDriver]
public void TestTreeTableSource_BasicExpanding_WithMouse ()
{
((FakeDriver)Application.Driver).SetBufferSize (100, 100);
TableView tv = GetTreeTable (out _);
tv.Style.GetOrCreateColumnStyle (1).MinAcceptableWidth = 1;
@@ -223,6 +226,7 @@ public class TreeTableSourceTests : IDisposable
Assert.Equal ("Ford Trans-Am", selected.Name);
Assert.Equal ("Talking thunderbird car", selected.Description);
top.Dispose ();
}
private TableView GetTreeTable (out TreeView<IDescribedThing> tree)