Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }