public void TestSystemUpdateSingle() { world = CreateWorld(); SystemU u = new SystemU(); world.AddSystem(u); world.Update<SystemU>(1); Assert.AreEqual(true, u.IsUpdated, "Expect U to be updated."); }
public void TestSystemUpdateSingleOther() { world = CreateWorld(); SystemU u = new SystemU(); world.AddSystem(u); world.Update<SystemA>(1); Assert.AreEqual(false, u.IsUpdated, "Expect U to not be updated, only A is updated."); }
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."); }