public void Should_Notify_AddedToGameManager_When_Added_To_GameManager() { var raised = false; const bool expected = true; var em = new EntityManager(_channelManager, new EntityPool()); var tgm = new TestGameManager(new DefaultEntityAspectManager(_channelManager, em), em, _systemManager); var system = new LabelSystem(_channelManager, 10, new[] {"default"}); system.AddedToGameManager += (s, e) => raised = true; system.AddToGameManager(tgm); Assert.Equal(expected, raised); }
public GameManagerTests() { var systemManager = new SystemManager(_channelManager); var entityManager = new EntityManager(_channelManager, new EntityPool()); _gameManager = new TestGameManager(new DefaultEntityAspectManager(_channelManager, entityManager), entityManager, systemManager); }