Beispiel #1
0
        /// <summary>
        ///InitZone 的测试
        ///</summary>
        public void InitZoneTestHelper <T>()
            where T : BaseWorld, new()
        {
            Zone <T>   target     = new Zone <T>(); // TODO: 初始化为适当的值
            ConfigZone configZone = null;           // TODO: 初始化为适当的值

            target.InitZone(configZone);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
        public void ZoneIDTest()
        {
            ConfigZone target   = new ConfigZone(); // TODO: 初始化为适当的值
            string     expected = string.Empty;     // TODO: 初始化为适当的值
            string     actual;

            target.ZoneID = expected;
            actual        = target.ZoneID;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
        public void ZonePortTest()
        {
            ConfigZone target   = new ConfigZone(); // TODO: 初始化为适当的值
            int        expected = 0;                // TODO: 初始化为适当的值
            int        actual;

            target.ZonePort = expected;
            actual          = target.ZonePort;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
        public void ConfigZoneConstructorTest()
        {
            ConfigZone target = new ConfigZone();

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }