Refactor Application constants and remove unused field

Removed the internal `_forceFakeConsole` field and its
associated `ClearForceFakeConsole` method from
`Application.Driver.cs` to simplify internal state management.

Renamed `DefaultMaximumIterationsPerSecond` to
`DEFAULT_MAXIMUM_ITERATIONS_PER_SECOND` in `Application.cs`
to align with updated naming conventions. Updated all
references and XML documentation accordingly.

Adjusted test logic in `ApplicationTests.cs` and
`TestSetup.cs` to remove references to `_forceFakeConsole`
and ensure alignment with the updated codebase.
This commit is contained in:
Tig
2025-10-26 15:35:52 -06:00
parent c653dc37c3
commit 93ec92e6a0
6 changed files with 4 additions and 13 deletions

View File

@@ -58,7 +58,6 @@ public class GlobalTestSetup : IDisposable
Assert.False (Application.Initialized);
Assert.Equal (Application.GetSupportedCultures (), Application.SupportedCultures);
Assert.Equal (Application.GetAvailableCulturesFromEmbeddedResources (), Application.SupportedCultures);
Assert.False (Application._forceFakeConsole);
Assert.Equal (-1, Application.MainThreadId);
Assert.Empty (Application.TopLevels);
Assert.Empty (Application.CachedViewsUnderMouse);