コード例 #1
0
ファイル: SystemManagerTests.cs プロジェクト: Simie/OpenAOE
        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));
        }
コード例 #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));
        }