コード例 #1
0
 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);
 }
コード例 #2
0
 public GameManagerTests()
 {
     var systemManager = new SystemManager(_channelManager);
     var entityManager = new EntityManager(_channelManager, new EntityPool());
     _gameManager = new TestGameManager(new DefaultEntityAspectManager(_channelManager, entityManager), entityManager, systemManager);
 }