mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 00:46:39 +01:00
All unit test pass for reals?
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#nullable enable
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reflection;
|
||||
|
||||
@@ -80,6 +81,16 @@ public static partial class Application // Initialization (Init/Shutdown)
|
||||
if (driver is { })
|
||||
{
|
||||
Driver = driver;
|
||||
|
||||
if (driver is FakeDriver)
|
||||
{
|
||||
// We're running unit tests. Disable loading config files other than default
|
||||
if (Locations == ConfigLocations.All)
|
||||
{
|
||||
Locations = ConfigLocations.DefaultOnly;
|
||||
Reset ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Start the process of configuration management.
|
||||
|
||||
Reference in New Issue
Block a user