public void Test_MemoryLeak() { using (MemoryTracer tracer = MemoryTracer.Begin()) { MemoryLeakTest(); ForceGC(); tracer.End(); (uint dealloc, uint unalloc) = tracer.GetStatus(); Assert.AreEqual(unalloc, 0u); } }