Fixes #4298 - Updates test namespaces (#4299)

* Refactored test namespaces.
Moved some tests that were in wrong project.
Code cleanup

* Parrallel -> Parallel
This commit is contained in:
Tig
2025-10-20 14:14:38 -06:00
committed by GitHub
parent 041e9de70e
commit fdeaa8331b
280 changed files with 328 additions and 323 deletions

View File

@@ -1,6 +1,6 @@
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class AdornmentSubViewTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class AdornmentTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class BorderTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class MarginTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class PaddingTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class ShadowStyleTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
#nullable enable
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
/// <summary>
/// Tests <see cref="View.Diagnostics"/> static property and <see cref="ViewDiagnosticFlags"/> enum.

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class AllViewsDrawTests (ITestOutputHelper output) : TestsAllViews
{

View File

@@ -3,7 +3,7 @@ using Moq;
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "Output")]
public class ClearViewportTests (ITestOutputHelper output)

View File

@@ -3,7 +3,7 @@ using System.Text;
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "Output")]
public class ClipTests (ITestOutputHelper _output)

View File

@@ -1,7 +1,7 @@
#nullable enable
using UnitTests;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "Output")]
public class DrawEventTests

View File

@@ -3,7 +3,7 @@ using System.Text;
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "Output")]
public class DrawTests (ITestOutputHelper output)

View File

@@ -1,7 +1,7 @@
#nullable enable
using UnitTests;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "Output")]
public class NeedsDrawTests ()

View File

@@ -2,7 +2,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "Output")]
public class TransparentTests (ITestOutputHelper output)

View File

@@ -2,7 +2,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
/// <summary>
/// Tests for View.KeyBindings

View File

@@ -1,6 +1,6 @@
using Xunit.Abstractions;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class DimFillTests (ITestOutputHelper output)
{

View File

@@ -4,7 +4,7 @@ using UnitTests;
using Xunit.Abstractions;
using static Terminal.Gui.ViewBase.Dim;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class DimTests
{

View File

@@ -1,6 +1,6 @@
#nullable enable
namespace Terminal.Gui.ViewMouseTests;
namespace UnitTests.ViewMouseTests;
[Trait ("Category", "Input")]
public class GetViewsUnderLocationTests

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class LayoutTests (ITestOutputHelper output) : TestsAllViews
{

View File

@@ -1,6 +1,6 @@
using UnitTests;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class PosAnchorEndTests ()
{

View File

@@ -3,7 +3,7 @@ using Xunit.Abstractions;
using static Terminal.Gui.ViewBase.Dim;
using static Terminal.Gui.ViewBase.Pos;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class PosCenterTests (ITestOutputHelper output)
{

View File

@@ -4,7 +4,7 @@ using Xunit.Abstractions;
using static Terminal.Gui.ViewBase.Dim;
using static Terminal.Gui.ViewBase.Pos;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class PosCombineTests (ITestOutputHelper output)
{

View File

@@ -3,7 +3,7 @@ using Xunit.Abstractions;
using static Terminal.Gui.ViewBase.Dim;
using static Terminal.Gui.ViewBase.Pos;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class PosTests ()
{

View File

@@ -2,7 +2,7 @@
using Xunit.Abstractions;
using static Terminal.Gui.ViewBase.Pos;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class PosViewTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.LayoutTests;
namespace UnitTests.LayoutTests;
public class SetLayoutTests (ITestOutputHelper output)
{

View File

@@ -1,7 +1,7 @@
using Moq;
using UnitTests;
namespace Terminal.Gui.ViewMouseTests;
namespace UnitTests.ViewMouseTests;
[Trait ("Category", "Input")]
public class MouseTests : TestsAllViews

View File

@@ -1,6 +1,6 @@
using UnitTests;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class CanFocusTests
{

View File

@@ -1,6 +1,6 @@
using UnitTests;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class EnabledTests
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class NavigationTests (ITestOutputHelper output) : TestsAllViews
{

View File

@@ -1,6 +1,6 @@
using Xunit;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
[Trait ("Category", "View.Scheme")]
public class SchemeTests

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class SubViewTests
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
/// <summary>
/// Tests of the <see cref="View.Text"/> and <see cref="View.TextFormatter"/> properties.

View File

@@ -1,4 +1,4 @@
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class ViewCommandTests
{

View File

@@ -1,7 +1,7 @@
using UnitTests;
using Xunit.Abstractions;
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class ViewTests
{

View File

@@ -1,6 +1,6 @@
#nullable enable
namespace Terminal.Gui.ViewTests;
namespace UnitTests.ViewTests;
public class TransparentMouseTests
{