I have an application in which a lot of memory leaks are present. For example if a open a view and close it 10 times my memory consumption rises becauses the views are not compl
How about something like:
long originalByteCount = GC.GetTotalMemory(true); SomeOperationThatMayLeakMemory(); long finalByteCount = GC.GetTotalMemory(true); Assert.AreEqual(originalByteCount, finalByteCount);