Fixes #4374 - Nukes all (?) legacy Driver and Application stuff; revamps tests (#4376)

This commit is contained in:
Tig
2025-11-11 16:29:33 -07:00
committed by GitHub
parent 559dea9239
commit d53fcd7485
310 changed files with 14827 additions and 16911 deletions

View File

@@ -80,7 +80,7 @@ public class UICatalog
// Get allowed driver names
string? [] allowedDrivers = Application.GetDriverTypes ().Item2.ToArray ();
Option<string> driverOption = new Option<string> ("--driver", "The IConsoleDriver to use.")
Option<string> driverOption = new Option<string> ("--driver", "The IDriver to use.")
.FromAmong (allowedDrivers!);
driverOption.SetDefaultValue (string.Empty);
driverOption.AddAlias ("-d");
@@ -635,7 +635,7 @@ public class UICatalog
if (!View.EnableDebugIDisposableAsserts)
{
View.Instances.Clear ();
RunState.Instances.Clear ();
SessionToken.Instances.Clear ();
return;
}
@@ -650,15 +650,15 @@ public class UICatalog
View.Instances.Clear ();
// Validate there are no outstanding Application.RunState-based instances
// Validate there are no outstanding Application sessions
// after a scenario was selected to run. This proves the main UI Catalog
// 'app' closed cleanly.
foreach (RunState? inst in RunState.Instances)
foreach (SessionToken? inst in SessionToken.Instances)
{
Debug.Assert (inst.WasDisposed);
}
RunState.Instances.Clear ();
SessionToken.Instances.Clear ();
#endif
}
}