mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
Fixed TreeTableSourceTests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user