public void Test()
        {
            MemoryPoolTest.TestMemoryLeak();
            SelfTest();
            UnmanagedMemoryStream ms = new UnmanagedMemoryStream();

            BinaryStreamTest.Test(ms);
            Assert.IsTrue(true);
            ms.Dispose();
            MemoryPoolTest.TestMemoryLeak();
        }
        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();
        }