aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/BasicTests/BasicTests.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-02 01:18:31 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-02 01:18:31 +0200
commitd137c0e74445b540bcdafc7a9e04463b4199c076 (patch)
tree674372c05f9b6e8b34e8cf4a8ffe4b464328c377 /Samples/BasicTests/BasicTests.cs
parentd46cbe601a9d5d4437f256a496f29a3fe6881da8 (diff)
styling constants
Diffstat (limited to 'Samples/BasicTests/BasicTests.cs')
-rw-r--r--Samples/BasicTests/BasicTests.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs
index fba4b70a..1a9340d5 100644
--- a/Samples/BasicTests/BasicTests.cs
+++ b/Samples/BasicTests/BasicTests.cs
@@ -15,6 +15,7 @@ namespace tests
#if NETCOREAPP3_1
DllMapCore.Resolve.Enable (true);
#endif
+
using (BasicTests app = new BasicTests ()) {
app.Run ();
}
@@ -98,8 +99,11 @@ namespace tests
else if (idx < 0)
idx = testFiles.Length - 1;
+#if NETCOREAPP3_1
Console.WriteLine ($"Loading {testFiles [idx]}. {AppDomain.CurrentDomain.MonitoringSurvivedMemorySize}");
-
+#else
+ Console.WriteLine ($"Loading {testFiles [idx]}. {GC.GetTotalMemory(true)}");
+#endif
Load (testFiles [idx]).DataSource = this;
} catch (Exception ex) {
(LoadIMLFragment ($"<Label Background='Red' Foreground='White' Height='Fit' Width='Stretched' Multiline='true' VerticalAlignment='Bottom' Margin='5' />") as Label).Text = ex.ToString();