public void CreatesInstanceForEverySystemInConstructor() { var systems = new ISystem[]{new TwoComponentSystem(), new OneComponentSystem()}; var manager = new RuntimeSystemManager(systems, Mock.Of<ILogger>()); manager.Systems.Count.ShouldBe(2); manager.Systems.ShouldAllBe(p => systems.Contains(p.System)); }
public void CreatesInstanceForEverySystemInConstructor() { var systems = new ISystem[] { new TwoComponentSystem(), new OneComponentSystem() }; var manager = new RuntimeSystemManager(systems, Mock.Of <ILogger>()); manager.Systems.Count.ShouldBe(2); manager.Systems.ShouldAllBe(p => systems.Contains(p.System)); }