From af88f610b06b0bcfa42e93ecd9efeea3e9b13ca8 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Sun, 14 Jun 2020 09:12:05 -0700 Subject: [PATCH] more testing --- UICatalog/UICatalog.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/UICatalog/UICatalog.cs b/UICatalog/UICatalog.cs index bdfa43b9f..281c88079 100644 --- a/UICatalog/UICatalog.cs +++ b/UICatalog/UICatalog.cs @@ -85,8 +85,22 @@ namespace UICatalog { scenario.Init (Application.Top, _baseColorScheme); scenario.Setup (); scenario.Run (); + +#if DEBUG + foreach (var inst in Responder.Instances) { + Debug.Assert (inst.WasDisposed); + } + Responder.Instances.Clear(); +#endif + scenario = GetScenarioToRun (); } + +#if DEBUG + foreach (var inst in Responder.Instances) { + Debug.Assert (inst.WasDisposed); + } +#endif } ///