Skip to content

Commit

Permalink
Tweaked unit tests more
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Nov 26, 2024
1 parent fab08af commit 774e603
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions UnitTests/Application/ApplicationScreenTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xunit.Abstractions;

namespace Terminal.Gui.ApplicationTests.NavigationTests;
namespace Terminal.Gui.ApplicationTests;

public class ApplicationScreenTests (ITestOutputHelper output)

Check warning on line 5 in UnitTests/Application/ApplicationScreenTests.cs

View workflow job for this annotation

GitHub Actions / build_release

Parameter 'output' is unread.
{
Expand All @@ -22,10 +22,10 @@ public void ClearScreenNextIteration_Resets_To_False_After_LayoutAndDraw ()
}

[Fact]
[SetupFakeDriver]
public void ClearContents_Called_When_Top_Frame_Changes ()
{
// Arrange
Application.Init (new FakeDriver ());
Application.Top = new Toplevel ();
Application.TopLevels.Push (Application.Top);

Expand Down Expand Up @@ -61,6 +61,8 @@ public void ClearContents_Called_When_Top_Frame_Changes ()
Assert.Equal (3, clearedContentsRaised);

// Cleanup
Application.ResetState (true);
Application.Top.Dispose ();
Application.Top = null;
Application.Shutdown ();
}
}
2 changes: 2 additions & 0 deletions UnitTests/Configuration/ConfigPropertyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using Terminal.Gui;
using Xunit;

namespace Terminal.Gui.ConfigurationTests;

public class ConfigPropertyTests
{
[Fact]
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/Drawing/SixelEncoderTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Color = Terminal.Gui.Color;

namespace UnitTests.Drawing;
namespace Terminal.Gui.DrawingTests;

public class SixelEncoderTests
{
Expand Down
3 changes: 2 additions & 1 deletion UnitTests/LocalPackagesTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Terminal.Gui;

namespace Terminal.Gui.BuildAndDeployTests;

public class LocalPackagesTests
{
Expand Down

0 comments on commit 774e603

Please sign in to comment.