/// <summary> ///ZoneClusterPacketHandlers 的测试 ///</summary> public void ZoneClusterPacketHandlersTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> target = new ZoneCluster_Accessor <WorldT>(); // TODO: 初始化为适当的值 ZoneClusterPacketHandlers actual; actual = target.ZoneClusterPacketHandlers; Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///ProcessorBuffers 的测试 ///</summary> public void ProcessorBuffersTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> target = new ZoneCluster_Accessor <WorldT>(); // TODO: 初始化为适当的值 BufferPool actual; actual = target.ProcessorBuffers; Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///GetPacketID 的测试 ///</summary> public void GetPacketIDTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> target = new ZoneCluster_Accessor <WorldT>(); // TODO: 初始化为适当的值 object sender = null; // TODO: 初始化为适当的值 PacketIdInfoEventArgs eventArgs = null; // TODO: 初始化为适当的值 target.GetPacketID(sender, eventArgs); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///OnLoginDomain 的测试 ///</summary> public void OnLoginDomainTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> target = new ZoneCluster_Accessor <WorldT>(); // TODO: 初始化为适当的值 object sender = null; // TODO: 初始化为适当的值 NetStateConnectEventArgs eventArgs = null; // TODO: 初始化为适当的值 target.OnLoginDomain(sender, eventArgs); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///ZoneClusterExitWorld 的测试 ///</summary> public void ZoneClusterExitWorldTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> target = new ZoneCluster_Accessor <WorldT>(); // TODO: 初始化为适当的值 object sender = null; // TODO: 初始化为适当的值 BaseWorldEventArgs eventArgs = null; // TODO: 初始化为适当的值 target.ZoneClusterExitWorld(sender, eventArgs); Assert.Inconclusive("无法验证不返回值的方法。"); }
// //编写测试时,还可使用以下属性: // //使用 ClassInitialize 在运行类中的第一个测试前先运行代码 //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //使用 ClassCleanup 在运行完类中的所有测试后再运行代码 //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //使用 TestInitialize 在运行每个测试前先运行代码 //[TestInitialize()] //public void MyTestInitialize() //{ //} // //使用 TestCleanup 在运行完每个测试后运行代码 //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion /// <summary> ///ToArray 的测试 ///</summary> public void ToArrayTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> .ZoneID target = new ZoneCluster_Accessor <WorldT> .ZoneID(); // TODO: 初始化为适当的值 NetState[] expected = null; // TODO: 初始化为适当的值 NetState[] actual; actual = target.ToArray(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///ConnectToDomainServer 的测试 ///</summary> public void ConnectToDomainServerTestHelper <WorldT>() where WorldT : BaseWorld, new() { ZoneCluster_Accessor <WorldT> target = new ZoneCluster_Accessor <WorldT>(); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.ConnectToDomainServer(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }