mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
* fix issue #2913 * remove disposed instances from responder.instances (optional) * Ensures only clear Instances if they really was disposed. * Fix unit tests. * Update RunStateTests.cs Minor format change to trigger new Unittest execution * Fixes Pos/Dim static fields not being disposing. --------- Co-authored-by: John Züchler <john.zuechler@eks-intec.de> Co-authored-by: BDisp <bd.bdisp@gmail.com>
This commit is contained in:
@@ -32,9 +32,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Application.Shutdown ();
|
||||
|
||||
#if DEBUG_IDISPOSABLE
|
||||
Assert.Equal (2, Responder.Instances.Count);
|
||||
Assert.True (Responder.Instances [0].WasDisposed);
|
||||
Assert.True (Responder.Instances [1].WasDisposed);
|
||||
Assert.Empty (Responder.Instances);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -49,9 +47,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
|
||||
Application.Shutdown ();
|
||||
#if DEBUG_IDISPOSABLE
|
||||
Assert.Equal (2, Responder.Instances.Count);
|
||||
Assert.True (Responder.Instances [0].WasDisposed);
|
||||
Assert.True (Responder.Instances [1].WasDisposed);
|
||||
Assert.Empty (Responder.Instances);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user