Пример #1
0
        /// <summary>
        ///ZoneID 构造函数 的测试
        ///</summary>
        public void ZoneCluster_ZoneIDConstructorTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> .ZoneID target = new ZoneCluster <WorldT> .ZoneID();

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }
Пример #2
0
        /// <summary>
        ///Broadcast 的测试
        ///</summary>
        public void BroadcastTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> .Channel target = new ZoneCluster <WorldT> .Channel(); // TODO: 初始化为适当的值

            target.Broadcast();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Пример #3
0
        /// <summary>
        ///unInitZoneCluster 的测试
        ///</summary>
        public void unInitZoneClusterTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值

            target.unInitZoneCluster();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Пример #4
0
        /// <summary>
        ///World 的测试
        ///</summary>
        public void WorldTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            WorldT actual;

            actual = target.World;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #5
0
        /// <summary>
        ///DomainHandler 的测试
        ///</summary>
        public void DomainHandlerTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            ZoneClusterHandler   actual;

            actual = target.DomainHandler;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #6
0
        /// <summary>
        ///IsLoginDomain 的测试
        ///</summary>
        public void IsLoginDomainTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            bool actual;

            actual = target.IsLoginDomain;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #7
0
        /// <summary>
        ///Add 的测试
        ///</summary>
        public void AddTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> .Channel target = new ZoneCluster <WorldT> .Channel(); // TODO: 初始化为适当的值

            NetState netState = null;                                                   // TODO: 初始化为适当的值

            target.Add(netState);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Пример #8
0
        /// <summary>
        ///ConnecterInitNetState 的测试
        ///</summary>
        public void ConnecterInitNetStateTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            object sender = null;                                     // TODO: 初始化为适当的值
            NetStateInitEventArgs netStateInit = null;                // TODO: 初始化为适当的值

            target.ConnecterInitNetState(sender, netStateInit);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Пример #9
0
        /// <summary>
        ///ConnecterProcessReceive 的测试
        ///</summary>
        public void ConnecterProcessReceiveTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            object            sender    = null;                       // TODO: 初始化为适当的值
            NetStateEventArgs eventArgs = null;                       // TODO: 初始化为适当的值

            target.ConnecterProcessReceive(sender, eventArgs);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Пример #10
0
        /// <summary>
        ///CreateChannel 的测试
        ///</summary>
        public void CreateChannelTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值

            ZoneCluster <WorldT> .Channel expected = null;            // TODO: 初始化为适当的值
            ZoneCluster <WorldT> .Channel actual;
            actual = target.CreateChannel();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #11
0
        /// <summary>
        ///GetZoneId 的测试
        ///</summary>
        public void GetZoneIdTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target   = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            NetState             netState = null;                       // TODO: 初始化为适当的值

            ZoneCluster <WorldT> .ZoneID expected = null;               // TODO: 初始化为适当的值
            ZoneCluster <WorldT> .ZoneID actual;
            actual = target.GetZoneId(netState);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #12
0
        /// <summary>
        ///SentToZone 的测试
        ///</summary>
        public void SentToZoneTestHelper <WorldT>()
            where WorldT : BaseWorld, new()
        {
            ZoneCluster <WorldT> target     = new ZoneCluster <WorldT>(); // TODO: 初始化为适当的值
            NetState             toNetState = null;                       // TODO: 初始化为适当的值
            string strMessage = string.Empty;                             // TODO: 初始化为适当的值
            int    expected   = 0;                                        // TODO: 初始化为适当的值
            int    actual;

            actual = target.SentToZone(toNetState, strMessage);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }