public void ToArrayTest() { NetStateManager target = new NetStateManager(); // TODO: 初始化为适当的值 NetState[] expected = null; // TODO: 初始化为适当的值 NetState[] actual; actual = target.ToArray(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> /// 检查全部的连接是否有效 /// </summary> private void CheckAllAlive() { // 检查是否已经在处理CheckAllAlive(...)的调用 if (m_LockInCheckAllAlive.InLock() == false) { return; } // 已经在处理CheckAllAlive(...)中 // 处理数据 NetState[] netStateArray = m_NetStateManager.ToArray(); for (int iIndex = 0; iIndex < netStateArray.Length; iIndex++) { netStateArray[iIndex].CheckAlive(); } // 已经处理完CheckAllAlive(...)的调用 m_LockInCheckAllAlive.OutLock(); }