public void ReleaseHandleTest()
 {
     SafeIOCompletionPortHandle_Accessor target = new SafeIOCompletionPortHandle_Accessor(); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     actual = target.ReleaseHandle();
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Beispiel #2
0
        public void CreateIoCompletionPortTest()
        {
            int numConcurrentThreads = 0;                        // TODO: 初始化为适当的值
            SafeIOCompletionPortHandle_Accessor expected = null; // TODO: 初始化为适当的值
            SafeIOCompletionPortHandle_Accessor actual;

            actual = IOCompletionPort_Accessor.CreateIoCompletionPort(numConcurrentThreads);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
        public void ReleaseHandleTest()
        {
            SafeIOCompletionPortHandle_Accessor target = new SafeIOCompletionPortHandle_Accessor(); // TODO: 初始化为适当的值
            bool expected = false;                                                                  // TODO: 初始化为适当的值
            bool actual;

            actual = target.ReleaseHandle();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Beispiel #4
0
        public void PostQueuedCompletionStatusTest()
        {
            SafeIOCompletionPortHandle_Accessor hIOCP = null; // TODO: 初始化为适当的值
            uint   numBytesTransferred = 0;                   // TODO: 初始化为适当的值
            IntPtr ptrCB    = new IntPtr();                   // TODO: 初始化为适当的值
            IntPtr ptrState = new IntPtr();                   // TODO: 初始化为适当的值
            bool   expected = false;                          // TODO: 初始化为适当的值
            bool   actual;

            actual = IOCompletionPort_Accessor.PostQueuedCompletionStatus(hIOCP, numBytesTransferred, ptrCB, ptrState);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Beispiel #5
0
        public void CreateIoCompletionPortTest1()
        {
            SafeFileHandle hFile = null;                              // TODO: 初始化为适当的值
            SafeIOCompletionPortHandle_Accessor hExistingIOCP = null; // TODO: 初始化为适当的值
            UIntPtr CompKey = new UIntPtr();                          // TODO: 初始化为适当的值
            uint    NumConcurrentThreads = 0;                         // TODO: 初始化为适当的值
            SafeIOCompletionPortHandle_Accessor expected = null;      // TODO: 初始化为适当的值
            SafeIOCompletionPortHandle_Accessor actual;

            actual = IOCompletionPort_Accessor.CreateIoCompletionPort(hFile, hExistingIOCP, CompKey, NumConcurrentThreads);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Beispiel #6
0
        public void GetQueuedCompletionStatusTest()
        {
            SafeIOCompletionPortHandle_Accessor hIOCP = null; // TODO: 初始化为适当的值
            uint   numBytesTransferred         = 0;           // TODO: 初始化为适当的值
            uint   numBytesTransferredExpected = 0;           // TODO: 初始化为适当的值
            IntPtr ptrCB            = new IntPtr();           // TODO: 初始化为适当的值
            IntPtr ptrCBExpected    = new IntPtr();           // TODO: 初始化为适当的值
            IntPtr ptrState         = new IntPtr();           // TODO: 初始化为适当的值
            IntPtr ptrStateExpected = new IntPtr();           // TODO: 初始化为适当的值
            uint   uiMilliseconds   = 0;                      // TODO: 初始化为适当的值
            bool   expected         = false;                  // TODO: 初始化为适当的值
            bool   actual;

            actual = IOCompletionPort_Accessor.GetQueuedCompletionStatus(hIOCP, out numBytesTransferred, out ptrCB, out ptrState, uiMilliseconds);
            Assert.AreEqual(numBytesTransferredExpected, numBytesTransferred);
            Assert.AreEqual(ptrCBExpected, ptrCB);
            Assert.AreEqual(ptrStateExpected, ptrState);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }