Jelajahi Sumber

Fixes #4298 - Updates test namespaces (#4299)

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

* Parrallel -> Parallel
Tig 1 bulan lalu
induk
melakukan
fdeaa8331b
100 mengubah file dengan 141 tambahan dan 103 penghapusan
  1. 1 1
      Tests/UnitTests/Application/Application.NavigationTests.cs
  2. 1 1
      Tests/UnitTests/Application/ApplicationImplTests.cs
  3. 1 1
      Tests/UnitTests/Application/ApplicationPopoverTests.cs
  4. 1 1
      Tests/UnitTests/Application/ApplicationScreenTests.cs
  5. 1 1
      Tests/UnitTests/Application/ApplicationTests.cs
  6. 1 1
      Tests/UnitTests/Application/CursorTests.cs
  7. 1 1
      Tests/UnitTests/Application/KeyboardTests.cs
  8. 1 1
      Tests/UnitTests/Application/MainLoopCoordinatorTests.cs
  9. 1 1
      Tests/UnitTests/Application/MainLoopTTests.cs
  10. 2 2
      Tests/UnitTests/Application/MainLoopTests.cs
  11. 1 1
      Tests/UnitTests/Application/Mouse/ApplicationMouseEnterLeaveTests.cs
  12. 1 1
      Tests/UnitTests/Application/Mouse/ApplicationMouseTests.cs
  13. 1 1
      Tests/UnitTests/Application/RunStateTests.cs
  14. 1 1
      Tests/UnitTests/Application/SynchronizatonContextTests.cs
  15. 1 1
      Tests/UnitTests/Clipboard/ClipboardTests.cs
  16. 1 1
      Tests/UnitTests/Configuration/AppScopeTests.cs
  17. 1 1
      Tests/UnitTests/Configuration/ConfigPropertyTests.cs
  18. 1 1
      Tests/UnitTests/Configuration/ConfigurationMangerTests.cs
  19. 1 1
      Tests/UnitTests/Configuration/GlyphTests.cs
  20. 1 1
      Tests/UnitTests/Configuration/KeyJsonConverterTests.cs
  21. 1 1
      Tests/UnitTests/Configuration/MemorySizeEstimator.cs
  22. 40 1
      Tests/UnitTests/Configuration/SchemeManagerTests.cs
  23. 1 1
      Tests/UnitTests/Configuration/SettingsScopeTests.cs
  24. 2 1
      Tests/UnitTests/Configuration/ThemeManagerTests.cs
  25. 1 1
      Tests/UnitTests/Configuration/ThemeScopeTests.cs
  26. 1 1
      Tests/UnitTests/Configuration/ThemeTests.cs
  27. 1 1
      Tests/UnitTests/ConsoleDrivers/AddRuneTests.cs
  28. 1 1
      Tests/UnitTests/ConsoleDrivers/AnsiKeyboardParserTests.cs
  29. 1 1
      Tests/UnitTests/ConsoleDrivers/AnsiMouseParserTests.cs
  30. 1 1
      Tests/UnitTests/ConsoleDrivers/AnsiRequestSchedulerTests.cs
  31. 1 1
      Tests/UnitTests/ConsoleDrivers/ClipRegionTests.cs
  32. 1 1
      Tests/UnitTests/ConsoleDrivers/ConsoleDriverTests.cs
  33. 1 1
      Tests/UnitTests/ConsoleDrivers/ConsoleInputTests.cs
  34. 1 1
      Tests/UnitTests/ConsoleDrivers/ConsoleKeyMappingTests.cs
  35. 1 1
      Tests/UnitTests/ConsoleDrivers/ConsoleScrolllingTests.cs
  36. 1 1
      Tests/UnitTests/ConsoleDrivers/ContentsTests.cs
  37. 1 1
      Tests/UnitTests/ConsoleDrivers/DriverColorTests.cs
  38. 1 1
      Tests/UnitTests/ConsoleDrivers/FakeDriverTests.cs
  39. 1 1
      Tests/UnitTests/ConsoleDrivers/KeyCodeTests.cs
  40. 1 1
      Tests/UnitTests/ConsoleDrivers/MouseInterpreterTests.cs
  41. 1 1
      Tests/UnitTests/ConsoleDrivers/NetInputProcessorTests.cs
  42. 1 1
      Tests/UnitTests/ConsoleDrivers/WindowSizeMonitorTests.cs
  43. 1 1
      Tests/UnitTests/ConsoleDrivers/WindowsInputProcessorTests.cs
  44. 1 1
      Tests/UnitTests/Dialogs/DialogTests.cs
  45. 1 1
      Tests/UnitTests/Dialogs/MessageBoxTests.cs
  46. 1 1
      Tests/UnitTests/Dialogs/WizardTests.cs
  47. 1 1
      Tests/UnitTests/Drawing/LineCanvasTests.cs
  48. 1 1
      Tests/UnitTests/Drawing/RulerTests.cs
  49. 1 1
      Tests/UnitTests/Drawing/StraightLineExtensionsTests.cs
  50. 1 1
      Tests/UnitTests/Drawing/ThicknessTests.cs
  51. 1 1
      Tests/UnitTests/FileServices/FileDialogTests.cs
  52. 1 1
      Tests/UnitTests/Input/EscSeqUtilsTests.cs
  53. 1 1
      Tests/UnitTests/Input/Keyboard/KeyTests.cs
  54. 1 1
      Tests/UnitTests/Text/AutocompleteTests.cs
  55. 1 1
      Tests/UnitTests/Text/TextFormatterTests.cs
  56. 1 1
      Tests/UnitTests/View/Adornment/AdornmentSubViewTests.cs
  57. 1 1
      Tests/UnitTests/View/Adornment/AdornmentTests.cs
  58. 1 1
      Tests/UnitTests/View/Adornment/BorderTests.cs
  59. 1 1
      Tests/UnitTests/View/Adornment/MarginTests.cs
  60. 1 1
      Tests/UnitTests/View/Adornment/PaddingTests.cs
  61. 1 1
      Tests/UnitTests/View/Adornment/ShadowStyleTests.cs
  62. 1 1
      Tests/UnitTests/View/DiagnosticsTests.cs
  63. 1 1
      Tests/UnitTests/View/Draw/AllViewsDrawTests.cs
  64. 1 1
      Tests/UnitTests/View/Draw/ClearViewportTests.cs
  65. 1 1
      Tests/UnitTests/View/Draw/ClipTests.cs
  66. 1 1
      Tests/UnitTests/View/Draw/DrawEventTests.cs
  67. 1 1
      Tests/UnitTests/View/Draw/DrawTests.cs
  68. 1 1
      Tests/UnitTests/View/Draw/NeedsDrawTests.cs
  69. 1 1
      Tests/UnitTests/View/Draw/TransparentTests.cs
  70. 1 1
      Tests/UnitTests/View/Keyboard/KeyBindingsTests.cs
  71. 1 1
      Tests/UnitTests/View/Layout/Dim.FillTests.cs
  72. 1 1
      Tests/UnitTests/View/Layout/Dim.Tests.cs
  73. 1 1
      Tests/UnitTests/View/Layout/GetViewsUnderLocationTests.cs
  74. 1 1
      Tests/UnitTests/View/Layout/LayoutTests.cs
  75. 1 1
      Tests/UnitTests/View/Layout/Pos.AnchorEndTests.cs
  76. 1 1
      Tests/UnitTests/View/Layout/Pos.CenterTests.cs
  77. 1 1
      Tests/UnitTests/View/Layout/Pos.CombineTests.cs
  78. 1 1
      Tests/UnitTests/View/Layout/Pos.Tests.cs
  79. 1 1
      Tests/UnitTests/View/Layout/Pos.ViewTests.cs
  80. 1 1
      Tests/UnitTests/View/Layout/SetLayoutTests.cs
  81. 1 1
      Tests/UnitTests/View/Mouse/MouseTests.cs
  82. 1 1
      Tests/UnitTests/View/Navigation/CanFocusTests.cs
  83. 1 1
      Tests/UnitTests/View/Navigation/EnabledTests.cs
  84. 1 1
      Tests/UnitTests/View/Navigation/NavigationTests.cs
  85. 1 1
      Tests/UnitTests/View/SchemeTests.cs
  86. 1 1
      Tests/UnitTests/View/SubviewTests.cs
  87. 1 1
      Tests/UnitTests/View/TextTests.cs
  88. 1 1
      Tests/UnitTests/View/ViewCommandTests.cs
  89. 1 1
      Tests/UnitTests/View/ViewTests.cs
  90. 1 1
      Tests/UnitTests/View/Viewport/ViewportSettings.TransparentMouseTests.cs
  91. 1 1
      Tests/UnitTests/Views/AllViewsTests.cs
  92. 1 1
      Tests/UnitTests/Views/AppendAutocompleteTests.cs
  93. 1 1
      Tests/UnitTests/Views/ButtonTests.cs
  94. 1 1
      Tests/UnitTests/Views/CheckBoxTests.cs
  95. 1 1
      Tests/UnitTests/Views/ColorPicker16Tests.cs
  96. 1 1
      Tests/UnitTests/Views/ColorPickerTests.cs
  97. 1 3
      Tests/UnitTests/Views/ComboBoxTests.cs
  98. 1 1
      Tests/UnitTests/Views/DateFieldTests.cs
  99. 1 1
      Tests/UnitTests/Views/DatePickerTests.cs
  100. 1 1
      Tests/UnitTests/Views/FrameViewTests.cs

+ 1 - 1
Tests/UnitTests/Application/Application.NavigationTests.cs

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

+ 1 - 1
Tests/UnitTests/Application/ApplicationImplTests.cs

@@ -5,7 +5,7 @@ using Microsoft.Extensions.Logging;
 using Moq;
 using TerminalGuiFluentTesting;
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 public class ApplicationImplTests
 {
     public ApplicationImplTests ()

+ 1 - 1
Tests/UnitTests/Application/ApplicationPopoverTests.cs

@@ -1,4 +1,4 @@
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 public class ApplicationPopoverTests
 {

+ 1 - 1
Tests/UnitTests/Application/ApplicationScreenTests.cs

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

+ 1 - 1
Tests/UnitTests/Application/ApplicationTests.cs

@@ -8,7 +8,7 @@ using static Terminal.Gui.Configuration.ConfigurationManager;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 public class ApplicationTests
 {

+ 1 - 1
Tests/UnitTests/Application/CursorTests.cs

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

+ 1 - 1
Tests/UnitTests/Application/KeyboardTests.cs

@@ -1,7 +1,7 @@
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 /// <summary>
 ///     Application tests for keyboard support.

+ 1 - 1
Tests/UnitTests/Application/MainLoopCoordinatorTests.cs

@@ -2,7 +2,7 @@
 using Microsoft.Extensions.Logging;
 using Moq;
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 public class MainLoopCoordinatorTests
 {
     [Fact]

+ 1 - 1
Tests/UnitTests/Application/MainLoopTTests.cs

@@ -3,7 +3,7 @@ using System.Collections.Concurrent;
 using System.Collections.Generic;
 using Moq;
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 public class MainLoopTTests
 {
     //[Fact]

+ 2 - 2
Tests/UnitTests/Application/MainLoopTests.cs

@@ -2,7 +2,7 @@ using System.Diagnostics;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 /// <summary>Tests MainLoop using the FakeMainLoop.</summary>
 public class MainLoopTests
@@ -575,7 +575,7 @@ public class MainLoopTests
         Assert.Empty (mainloop.TimedEvents.Timeouts);
 
         Assert.NotNull (
-                        new App.Timeout { Span = new (), Callback = () => true }
+                        new Terminal.Gui.App.Timeout { Span = new (), Callback = () => true }
                        );
     }
 

+ 1 - 1
Tests/UnitTests/Application/Mouse/ApplicationMouseEnterLeaveTests.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 
-namespace Terminal.Gui.ViewMouseTests;
+namespace UnitTests.ViewMouseTests;
 
 [Trait ("Category", "Input")]
 public class ApplicationMouseEnterLeaveTests

+ 1 - 1
Tests/UnitTests/Application/Mouse/ApplicationMouseTests.cs

@@ -3,7 +3,7 @@ using Xunit.Abstractions;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 [Trait ("Category", "Input")]
 public class ApplicationMouseTests

+ 1 - 1
Tests/UnitTests/Application/RunStateTests.cs

@@ -4,7 +4,7 @@ using System.Numerics;
 using Terminal.Gui.Drivers;
 using UnitTests;
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 /// <summary>These tests focus on Application.RunState and the various ways it can be changed.</summary>
 public class RunStateTests

+ 1 - 1
Tests/UnitTests/Application/SynchronizatonContextTests.cs

@@ -2,7 +2,7 @@
 
 using UnitTests;
 
-namespace Terminal.Gui.ApplicationTests;
+namespace UnitTests.ApplicationTests;
 
 public class SyncrhonizationContextTests
 {

+ 1 - 1
Tests/UnitTests/Clipboard/ClipboardTests.cs

@@ -1,4 +1,4 @@
-namespace Terminal.Gui.ClipboardTests;
+namespace UnitTests.ClipboardTests;
 
 #if RUN_CLIPBOARD_UNIT_TESTS
 public class ClipboardTests

+ 1 - 1
Tests/UnitTests/Configuration/AppScopeTests.cs

@@ -3,7 +3,7 @@ using System.Text.Json;
 using UnitTests;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class AppSettingsScopeTests
 {

+ 1 - 1
Tests/UnitTests/Configuration/ConfigPropertyTests.cs

@@ -3,7 +3,7 @@ using System.Collections.Concurrent;
 using System.Reflection;
 using System.Text.Json;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class ConfigPropertyTests
 {

+ 1 - 1
Tests/UnitTests/Configuration/ConfigurationMangerTests.cs

@@ -10,7 +10,7 @@ using File = System.IO.File;
 
 #pragma warning disable IDE1006
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class ConfigurationManagerTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Configuration/GlyphTests.cs

@@ -3,7 +3,7 @@ using System.Text;
 using System.Text.Json;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class GlyphTests
 {

+ 1 - 1
Tests/UnitTests/Configuration/KeyJsonConverterTests.cs

@@ -3,7 +3,7 @@ using System.Text.Encodings.Web;
 using System.Text.Json;
 using System.Text.Unicode;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class KeyJsonConverterTests
 {

+ 1 - 1
Tests/UnitTests/Configuration/MemorySizeEstimator.cs

@@ -1,6 +1,6 @@
 #nullable enable
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 using System;
 using System.Collections;

+ 40 - 1
Tests/UnitTests/Configuration/SchemeManagerTests.cs

@@ -5,7 +5,7 @@ using System.Collections.Immutable;
 using System.Text.Json;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class SchemeManagerTests
 {
@@ -956,4 +956,43 @@ public class SchemeManagerTests
 
         Disable (true);
     }
+
+
+    [Fact]
+    public void AddScheme_Adds_And_Updates_Scheme ()
+    {
+        // Arrange
+        var scheme = new Scheme (new Attribute (Color.Red, Color.Green));
+        string schemeName = "CustomScheme";
+
+        // Act
+        SchemeManager.AddScheme (schemeName, scheme);
+
+        // Assert
+        Assert.Equal (scheme, SchemeManager.GetScheme (schemeName));
+
+        // Update the scheme
+        var updatedScheme = new Scheme (new Attribute (Color.Blue, Color.Yellow));
+        SchemeManager.AddScheme (schemeName, updatedScheme);
+
+        Assert.Equal (updatedScheme, SchemeManager.GetScheme (schemeName));
+
+        // Cleanup
+        SchemeManager.RemoveScheme (schemeName);
+    }
+
+    [Fact]
+    public void RemoveScheme_Removes_Custom_Scheme ()
+    {
+        var scheme = new Scheme (new Attribute (Color.Red, Color.Green));
+        string schemeName = "RemovableScheme";
+        SchemeManager.AddScheme (schemeName, scheme);
+
+        Assert.Equal (scheme, SchemeManager.GetScheme (schemeName));
+
+        SchemeManager.RemoveScheme (schemeName);
+
+        Assert.Throws<KeyNotFoundException> (() => SchemeManager.GetScheme (schemeName));
+    }
+
 }

+ 1 - 1
Tests/UnitTests/Configuration/SettingsScopeTests.cs

@@ -5,7 +5,7 @@ using System.Collections.Immutable;
 using System.Text.Json;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class SettingsScopeTests
 {

+ 2 - 1
Tests/UnitTestsParallelizable/Configuration/ThemeManagerTests.cs → Tests/UnitTests/Configuration/ThemeManagerTests.cs

@@ -2,10 +2,11 @@
 using System.Collections.Concurrent;
 using System.Diagnostics.Metrics;
 using System.Text;
+using UnitTests.ConfigurationTests;
 using Xunit.Abstractions;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class ThemeManagerTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Configuration/ThemeScopeTests.cs

@@ -5,7 +5,7 @@ using System.Collections.Immutable;
 using System.Text.Json;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 public class ThemeScopeTests
 {

+ 1 - 1
Tests/UnitTests/Configuration/ThemeTests.cs

@@ -1,7 +1,7 @@
 using System.Text.Json;
 using static Terminal.Gui.Configuration.ConfigurationManager;
 
-namespace Terminal.Gui.ConfigurationTests;
+namespace UnitTests.ConfigurationTests;
 
 /// <summary>
 ///     Tests Settings["Theme"] and ThemeManager.Theme

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/AddRuneTests.cs

@@ -4,7 +4,7 @@ using Xunit.Abstractions;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class AddRuneTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/AnsiKeyboardParserTests.cs

@@ -1,5 +1,5 @@
 #nullable enable
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class AnsiKeyboardParserTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/AnsiMouseParserTests.cs

@@ -1,4 +1,4 @@
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class AnsiMouseParserTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/AnsiRequestSchedulerTests.cs

@@ -1,6 +1,6 @@
 using Moq;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 
 public class AnsiRequestSchedulerTests

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/ClipRegionTests.cs

@@ -3,7 +3,7 @@ using Xunit.Abstractions;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class ClipRegionTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/ConsoleDriverTests.cs

@@ -4,7 +4,7 @@ using Xunit.Abstractions;
 // Alias Console to MockConsole so we don't accidentally use Console
 using Console = Terminal.Gui.Drivers.FakeConsole;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class ConsoleDriverTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/ConsoleInputTests.cs

@@ -5,7 +5,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 public class ConsoleInputTests
 {
     class FakeInput : ConsoleInput<char>

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/ConsoleKeyMappingTests.cs

@@ -1,5 +1,5 @@
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class ConsoleKeyMappingTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/ConsoleScrolllingTests.cs

@@ -3,7 +3,7 @@
 // Alias Console to MockConsole so we don't accidentally use Console
 using Console = Terminal.Gui.Drivers.FakeConsole;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 public class ConsoleScrollingTests
 {
     private readonly ITestOutputHelper output;

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/ContentsTests.cs

@@ -4,7 +4,7 @@ using Xunit.Abstractions;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class ContentsTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/DriverColorTests.cs

@@ -2,7 +2,7 @@
 
 using Console = Terminal.Gui.Drivers.FakeConsole;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class DriverColorTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/FakeDriverTests.cs

@@ -3,7 +3,7 @@ using Xunit;
 
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 /// <summary>
 /// Tests for the FakeDriver to ensure it works properly with the modern component factory architecture.

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/KeyCodeTests.cs

@@ -1,6 +1,6 @@
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.InputTests;
+namespace UnitTests.InputTests;
 
 public class KeyCodeTests
 {

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/MouseInterpreterTests.cs

@@ -1,6 +1,6 @@
 using Moq;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 public class MouseInterpreterTests
 {
     [Theory]

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/NetInputProcessorTests.cs

@@ -1,7 +1,7 @@
 using System.Collections.Concurrent;
 using System.Text;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 public class NetInputProcessorTests
 {
     public static IEnumerable<object []> GetConsoleKeyInfoToKeyTestCases_Rune ()

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/WindowSizeMonitorTests.cs

@@ -1,6 +1,6 @@
 using Moq;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 public class WindowSizeMonitorTests
 {
     public WindowSizeMonitorTests ()

+ 1 - 1
Tests/UnitTests/ConsoleDrivers/WindowsInputProcessorTests.cs

@@ -5,7 +5,7 @@ using EventFlags = Terminal.Gui.Drivers.WindowsConsole.EventFlags;
 using ControlKeyState = Terminal.Gui.Drivers.WindowsConsole.ControlKeyState;
 using MouseEventRecord = Terminal.Gui.Drivers.WindowsConsole.MouseEventRecord;
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class WindowsInputProcessorTests
 {

+ 1 - 1
Tests/UnitTests/Dialogs/DialogTests.cs

@@ -3,7 +3,7 @@ using UnitTests;
 using Xunit.Abstractions;
 using static Terminal.Gui.App.Application;
 
-namespace Terminal.Gui.DialogTests;
+namespace UnitTests.DialogTests;
 
 public class DialogTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Dialogs/MessageBoxTests.cs

@@ -3,7 +3,7 @@ using UICatalog;
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.DialogTests;
+namespace UnitTests.DialogTests;
 
 public class MessageBoxTests
 {

+ 1 - 1
Tests/UnitTests/Dialogs/WizardTests.cs

@@ -1,7 +1,7 @@
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.DialogTests;
+namespace UnitTests.DialogTests;
 
 public class WizardTests ()
 {

+ 1 - 1
Tests/UnitTests/Drawing/LineCanvasTests.cs

@@ -2,7 +2,7 @@
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.DrawingTests;
+namespace UnitTests.DrawingTests;
 
 public class LineCanvasTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Drawing/RulerTests.cs

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

+ 1 - 1
Tests/UnitTests/Drawing/StraightLineExtensionsTests.cs

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

+ 1 - 1
Tests/UnitTests/Drawing/ThicknessTests.cs

@@ -2,7 +2,7 @@
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.DrawingTests;
+namespace UnitTests.DrawingTests;
 
 public class ThicknessTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/FileServices/FileDialogTests.cs

@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.FileServicesTests;
+namespace UnitTests.FileServicesTests;
 
 public class FileDialogTests ()
 {

+ 1 - 1
Tests/UnitTests/Input/EscSeqUtilsTests.cs

@@ -3,7 +3,7 @@ using UnitTests;
 
 // ReSharper disable HeuristicUnreachableCode
 
-namespace Terminal.Gui.DriverTests;
+namespace UnitTests.DriverTests;
 
 public class EscSeqUtilsTests
 {

+ 1 - 1
Tests/UnitTests/Input/Keyboard/KeyTests.cs

@@ -1,6 +1,6 @@
 using System.Text;
 
-namespace Terminal.Gui.InputTests;
+namespace UnitTests.InputTests;
 
 public class KeyTests
 {

+ 1 - 1
Tests/UnitTests/Text/AutocompleteTests.cs

@@ -2,7 +2,7 @@
 using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.TextTests;
+namespace UnitTests.TextTests;
 
 public class AutocompleteTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Text/TextFormatterTests.cs

@@ -5,7 +5,7 @@ using Xunit.Abstractions;
 
 // Alias Console to MockConsole so we don't accidentally use Console
 
-namespace Terminal.Gui.TextTests;
+namespace UnitTests.TextTests;
 
 public class TextFormatterTests
 {

+ 1 - 1
Tests/UnitTests/View/Adornment/AdornmentSubViewTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Adornment/AdornmentTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Adornment/BorderTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Adornment/MarginTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Adornment/PaddingTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Adornment/ShadowStyleTests.cs

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

+ 1 - 1
Tests/UnitTests/View/DiagnosticsTests.cs

@@ -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 - 1
Tests/UnitTests/View/Draw/AllViewsDrawTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Draw/ClearViewportTests.cs

@@ -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)

+ 1 - 1
Tests/UnitTests/View/Draw/ClipTests.cs

@@ -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 - 1
Tests/UnitTests/View/Draw/DrawEventTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Draw/DrawTests.cs

@@ -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 - 1
Tests/UnitTests/View/Draw/NeedsDrawTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Draw/TransparentTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Keyboard/KeyBindingsTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Layout/Dim.FillTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Layout/Dim.Tests.cs

@@ -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 - 1
Tests/UnitTests/View/Layout/GetViewsUnderLocationTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Layout/LayoutTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Layout/Pos.AnchorEndTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Layout/Pos.CenterTests.cs

@@ -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)
 {

+ 1 - 1
Tests/UnitTests/View/Layout/Pos.CombineTests.cs

@@ -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)
 {

+ 1 - 1
Tests/UnitTests/View/Layout/Pos.Tests.cs

@@ -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 ()
 {

+ 1 - 1
Tests/UnitTests/View/Layout/Pos.ViewTests.cs

@@ -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 - 1
Tests/UnitTests/View/Layout/SetLayoutTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Mouse/MouseTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Navigation/CanFocusTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Navigation/EnabledTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Navigation/NavigationTests.cs

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

+ 1 - 1
Tests/UnitTests/View/SchemeTests.cs

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

+ 1 - 1
Tests/UnitTests/View/SubviewTests.cs

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

+ 1 - 1
Tests/UnitTests/View/TextTests.cs

@@ -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 - 1
Tests/UnitTests/View/ViewCommandTests.cs

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

+ 1 - 1
Tests/UnitTests/View/ViewTests.cs

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

+ 1 - 1
Tests/UnitTests/View/Viewport/ViewportSettings.TransparentMouseTests.cs

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

+ 1 - 1
Tests/UnitTests/Views/AllViewsTests.cs

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

+ 1 - 1
Tests/UnitTests/Views/AppendAutocompleteTests.cs

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

+ 1 - 1
Tests/UnitTests/Views/ButtonTests.cs

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

+ 1 - 1
Tests/UnitTests/Views/CheckBoxTests.cs

@@ -4,7 +4,7 @@ using Xunit.Abstractions;
 
 // ReSharper disable AccessToModifiedClosure
 
-namespace Terminal.Gui.ViewsTests;
+namespace UnitTests.ViewsTests;
 
 public class CheckBoxTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Views/ColorPicker16Tests.cs

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

+ 1 - 1
Tests/UnitTests/Views/ColorPickerTests.cs

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

+ 1 - 3
Tests/UnitTests/Views/ComboBoxTests.cs

@@ -1,9 +1,7 @@
 using System.Collections.ObjectModel;
-using Terminal.Gui.ConfigurationTests;
-using UnitTests;
 using Xunit.Abstractions;
 
-namespace Terminal.Gui.ViewsTests;
+namespace UnitTests.ViewsTests;
 
 public class ComboBoxTests (ITestOutputHelper output)
 {

+ 1 - 1
Tests/UnitTests/Views/DateFieldTests.cs

@@ -2,7 +2,7 @@
 using System.Runtime.InteropServices;
 using UnitTests;
 
-namespace Terminal.Gui.ViewsTests;
+namespace UnitTests.ViewsTests;
 
 public class DateFieldTests
 {

+ 1 - 1
Tests/UnitTests/Views/DatePickerTests.cs

@@ -1,7 +1,7 @@
 using System.Globalization;
 using UnitTests;
 
-namespace Terminal.Gui.ViewsTests;
+namespace UnitTests.ViewsTests;
 
 public class DatePickerTests
 {

+ 1 - 1
Tests/UnitTests/Views/FrameViewTests.cs

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

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini