mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Tweaked unit tests more
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ApplicationTests.NavigationTests;
|
||||
namespace Terminal.Gui.ApplicationTests;
|
||||
|
||||
public class ApplicationScreenTests (ITestOutputHelper output)
|
||||
{
|
||||
@@ -22,10 +22,10 @@ public class ApplicationScreenTests (ITestOutputHelper output)
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SetupFakeDriver]
|
||||
public void ClearContents_Called_When_Top_Frame_Changes ()
|
||||
{
|
||||
// Arrange
|
||||
Application.Init (new FakeDriver ());
|
||||
Application.Top = new Toplevel ();
|
||||
Application.TopLevels.Push (Application.Top);
|
||||
|
||||
@@ -61,6 +61,8 @@ public class ApplicationScreenTests (ITestOutputHelper output)
|
||||
Assert.Equal (3, clearedContentsRaised);
|
||||
|
||||
// Cleanup
|
||||
Application.ResetState (true);
|
||||
Application.Top.Dispose ();
|
||||
Application.Top = null;
|
||||
Application.Shutdown ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@ using System.Text.Json.Serialization;
|
||||
using Terminal.Gui;
|
||||
using Xunit;
|
||||
|
||||
namespace Terminal.Gui.ConfigurationTests;
|
||||
|
||||
public class ConfigPropertyTests
|
||||
{
|
||||
[Fact]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Color = Terminal.Gui.Color;
|
||||
|
||||
namespace UnitTests.Drawing;
|
||||
namespace Terminal.Gui.DrawingTests;
|
||||
|
||||
public class SixelEncoderTests
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
namespace Terminal.Gui;
|
||||
|
||||
namespace Terminal.Gui.BuildAndDeployTests;
|
||||
|
||||
public class LocalPackagesTests
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user