mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class AdornmentSubViewTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class AdornmentTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class BorderTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class MarginTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class PaddingTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class ShadowStyleTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.LayoutTests;
|
||||
namespace UnitTests.LayoutTests;
|
||||
|
||||
public class AllViewsDrawTests (ITestOutputHelper output) : TestsAllViews
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#nullable enable
|
||||
using UnitTests;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
[Trait ("Category", "Output")]
|
||||
public class DrawEventTests
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#nullable enable
|
||||
using UnitTests;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
[Trait ("Category", "Output")]
|
||||
public class NeedsDrawTests ()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
[Trait ("Category", "Output")]
|
||||
public class TransparentTests (ITestOutputHelper output)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
/// <summary>
|
||||
/// Tests for View.KeyBindings
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.LayoutTests;
|
||||
namespace UnitTests.LayoutTests;
|
||||
|
||||
public class DimFillTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#nullable enable
|
||||
|
||||
namespace Terminal.Gui.ViewMouseTests;
|
||||
namespace UnitTests.ViewMouseTests;
|
||||
|
||||
[Trait ("Category", "Input")]
|
||||
public class GetViewsUnderLocationTests
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.LayoutTests;
|
||||
namespace UnitTests.LayoutTests;
|
||||
|
||||
public class LayoutTests (ITestOutputHelper output) : TestsAllViews
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using UnitTests;
|
||||
|
||||
namespace Terminal.Gui.LayoutTests;
|
||||
namespace UnitTests.LayoutTests;
|
||||
|
||||
public class PosAnchorEndTests ()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 ()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.LayoutTests;
|
||||
namespace UnitTests.LayoutTests;
|
||||
|
||||
public class SetLayoutTests (ITestOutputHelper output)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Moq;
|
||||
using UnitTests;
|
||||
|
||||
namespace Terminal.Gui.ViewMouseTests;
|
||||
namespace UnitTests.ViewMouseTests;
|
||||
|
||||
[Trait ("Category", "Input")]
|
||||
public class MouseTests : TestsAllViews
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using UnitTests;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class CanFocusTests
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using UnitTests;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class EnabledTests
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class NavigationTests (ITestOutputHelper output) : TestsAllViews
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Xunit;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
[Trait ("Category", "View.Scheme")]
|
||||
public class SchemeTests
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class SubViewTests
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class ViewCommandTests
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using UnitTests;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class ViewTests
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#nullable enable
|
||||
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
namespace UnitTests.ViewTests;
|
||||
|
||||
public class TransparentMouseTests
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user