mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
make test output prettier
This commit is contained in:
@@ -32,17 +32,17 @@ namespace UnitTests.ViewsTests {
|
||||
GC.Collect ();
|
||||
GC.WaitForPendingFinalizers ();
|
||||
}
|
||||
#if DEBUG_IDISPOSABLE
|
||||
if (reference.IsAlive) {
|
||||
#if DEBUG_IDISPOSABLE
|
||||
Assert.True (((View)reference.Target).WasDisposed);
|
||||
#endif
|
||||
string alive = "\n View (Container)";
|
||||
foreach (View v in ((View)reference.Target).Subviews) {
|
||||
alive += ",\n";
|
||||
alive += ",\n--";
|
||||
alive += v.GetType ().Name;
|
||||
}
|
||||
Assert.Fail ($"Some Views didnt get Garbage Collected: {alive}");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void getSpecialParams ()
|
||||
|
||||
Reference in New Issue
Block a user