Skip to content

Commit 774e603

Browse files
committed
Tweaked unit tests more
1 parent fab08af commit 774e603

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

UnitTests/Application/ApplicationScreenTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Xunit.Abstractions;
22

3-
namespace Terminal.Gui.ApplicationTests.NavigationTests;
3+
namespace Terminal.Gui.ApplicationTests;
44

55
public class ApplicationScreenTests (ITestOutputHelper output)
66
{
@@ -22,10 +22,10 @@ public void ClearScreenNextIteration_Resets_To_False_After_LayoutAndDraw ()
2222
}
2323

2424
[Fact]
25-
[SetupFakeDriver]
2625
public void ClearContents_Called_When_Top_Frame_Changes ()
2726
{
2827
// Arrange
28+
Application.Init (new FakeDriver ());
2929
Application.Top = new Toplevel ();
3030
Application.TopLevels.Push (Application.Top);
3131

@@ -61,6 +61,8 @@ public void ClearContents_Called_When_Top_Frame_Changes ()
6161
Assert.Equal (3, clearedContentsRaised);
6262

6363
// Cleanup
64-
Application.ResetState (true);
64+
Application.Top.Dispose ();
65+
Application.Top = null;
66+
Application.Shutdown ();
6567
}
6668
}

UnitTests/Configuration/ConfigPropertyTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using Terminal.Gui;
66
using Xunit;
77

8+
namespace Terminal.Gui.ConfigurationTests;
9+
810
public class ConfigPropertyTests
911
{
1012
[Fact]

UnitTests/Drawing/SixelEncoderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Color = Terminal.Gui.Color;
22

3-
namespace UnitTests.Drawing;
3+
namespace Terminal.Gui.DrawingTests;
44

55
public class SixelEncoderTests
66
{

UnitTests/LocalPackagesTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
namespace Terminal.Gui;
1+

2+
namespace Terminal.Gui.BuildAndDeployTests;
23

34
public class LocalPackagesTests
45
{

0 commit comments

Comments
 (0)