TestMemoryLeak() public static method

public static TestMemoryLeak ( ) : void
return void
コード例 #1
0
        public void Test()
        {
            MemoryPoolTest.TestMemoryLeak();
            SelfTest();
            UnmanagedMemoryStream ms = new UnmanagedMemoryStream();

            BinaryStreamTest.Test(ms);
            Assert.IsTrue(true);
            ms.Dispose();
            MemoryPoolTest.TestMemoryLeak();
        }
コード例 #2
0
        public void Test()
        {
            MemoryPoolTest.TestMemoryLeak();

            EventHandler <CollectionEventArgs> del = new EventHandler <CollectionEventArgs>(BufferPool_RequestCollection);

            Globals.MemoryPool.RequestCollection += del;

            //Test1();
            Test2();

            Globals.MemoryPool.RequestCollection -= del;

            MemoryPoolTest.TestMemoryLeak();
        }