Ejemplo n.º 1
0
        /// <summary>
        ///OnUpdateWorld 的测试
        ///</summary>
        public void OnUpdateWorldTestHelper <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT>()
            where MapT : BaseMap
            where ItemT : BaseItem
            where ItemTemplateT : BaseItemTemplate
            where GameObjectT : BaseGameObject
            where GameObjectTemplateT : BaseGameObjectTemplate
            where CreatureT : BaseCreature
            where CreatureTemplateT : BaseCreatureTemplate
            where CharacterT : BaseCharacter
        {
            MmorpgWorld_Accessor <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT> target = new MmorpgWorld_Accessor <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT>(); // TODO: 初始化为适当的值

            target.OnUpdateWorld();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Ejemplo n.º 2
0
        /// <summary>
        ///MapManager 的测试
        ///</summary>
        public void MapManagerTestHelper <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT>()
            where MapT : BaseMap
            where ItemT : BaseItem
            where ItemTemplateT : BaseItemTemplate
            where GameObjectT : BaseGameObject
            where GameObjectTemplateT : BaseGameObjectTemplate
            where CreatureT : BaseCreature
            where CreatureTemplateT : BaseCreatureTemplate
            where CharacterT : BaseCharacter
        {
            MmorpgWorld_Accessor <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT> target = new MmorpgWorld_Accessor <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT>(); // TODO: 初始化为适当的值
            MapManager <MapT> expected = null;                                                                                                                                                                                                                                          // TODO: 初始化为适当的值
            MapManager <MapT> actual;

            target.MapManager = expected;
            actual            = target.MapManager;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Ejemplo n.º 3
0
        /// <summary>
        ///StartSlice 的测试
        ///</summary>
        public void StartSliceTestHelper <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT>()
            where MapT : BaseMap
            where ItemT : BaseItem
            where ItemTemplateT : BaseItemTemplate
            where GameObjectT : BaseGameObject
            where GameObjectTemplateT : BaseGameObjectTemplate
            where CreatureT : BaseCreature
            where CreatureTemplateT : BaseCreatureTemplate
            where CharacterT : BaseCharacter
        {
            MmorpgWorld_Accessor <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT> target = new MmorpgWorld_Accessor <MapT, ItemT, ItemTemplateT, GameObjectT, GameObjectTemplateT, CreatureT, CreatureTemplateT, CharacterT>(); // TODO: 初始化为适当的值
            object             sender    = null;                                                                                                                                                                                                                                        // TODO: 初始化为适当的值
            BaseWorldEventArgs eventArgs = null;                                                                                                                                                                                                                                        // TODO: 初始化为适当的值

            target.StartSlice(sender, eventArgs);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }