示例#1
0
        public void Initialize_UsingGameSetting_CreateCharacterCountEqualEnum()
        {
            var system = new CharacterLoadingSystems(_contexts);

            system.Initialize();

            var enumCount = Enum.GetNames(typeof(Character)).Length;

            Assert.AreEqual(enumCount, _contexts.unit.count);
        }
示例#2
0
        public void Initialize_UsingGameSetting_AllHaveCharacterComponent()
        {
            var system = new CharacterLoadingSystems(_contexts);

            system.Initialize();

            foreach (var e in _contexts.unit.GetEntities())
            {
                Assert.IsTrue(e.hasCharacter);
            }
        }