|
@@ -32,11 +32,12 @@ namespace UnitTests.ViewsTests {
|
|
GC.Collect ();
|
|
GC.Collect ();
|
|
GC.WaitForPendingFinalizers ();
|
|
GC.WaitForPendingFinalizers ();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+#if DEBUG_IDISPOSABLE
|
|
if (reference.IsAlive) {
|
|
if (reference.IsAlive) {
|
|
Assert.True (((View)reference.Target).WasDisposed);
|
|
Assert.True (((View)reference.Target).WasDisposed);
|
|
Assert.Fail ($"Some Views didnt get Garbage Collected: {((View)reference.Target).Subviews}");
|
|
Assert.Fail ($"Some Views didnt get Garbage Collected: {((View)reference.Target).Subviews}");
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
void getSpecialParams ()
|
|
void getSpecialParams ()
|