public void IsNotExecutedForUpdateSystemInDrawLoop() { var target = new FakeComponentDrawSystem(); var world = new EntityWorld(); world.AddSystem(target); var component = new FakeComponent1(); Entity entity = world.CreateEntity(); entity.AddComponent(component); world.Update(TimeSpan.Zero); Assert.False(component.Processed); }
public void IsExecutedForDrawGameLoopSystem() { var target = new FakeComponentDrawSystem(); var world = new EntityWorld(); world.AddSystem(target); var component = new FakeComponent1(); Entity entity = world.CreateEntity(); entity.AddComponent(component); world.Draw(); Assert.True(component.Processed); }