Skip to content

Commit

Permalink
Create first test for Application2
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Dec 15, 2024
1 parent c31d11d commit c01f974
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions UnitTests/ConsoleDrivers/V2/ApplicationV2Tests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Terminal.Gui.ConsoleDrivers.V2;

namespace UnitTests.ConsoleDrivers.V2;
public class ApplicationV2Tests
{
[Fact]
public void TestInit_CreatesKeybindings ()
{
var v2 = new ApplicationV2 ();

Application.KeyBindings.Clear();

Assert.Empty(Application.KeyBindings.GetBindings ());

v2.Init ();

Assert.NotEmpty (Application.KeyBindings.GetBindings ());
}
}

0 comments on commit c01f974

Please sign in to comment.