Esempio n. 1
0
        public void TestSystemUpdate()
        {
            world = CreateWorld();
            SystemU u = new SystemU();
            world.AddSystem(u);

            world.UpdateAll(1);
            Assert.AreEqual(true, u.IsUpdated, "Expect U to be updated.");
        }
Esempio n. 2
0
        public void TestSystemExcludedUpdate()
        {
            world = CreateWorld();
            SystemU u = new SystemU();
            world.AddSystem(u);

            world.UpdateAll(1, typeof(SystemU));
            Assert.AreEqual(false, u.IsUpdated, "Expect U to be excluded, and thus not updated.");
        }