Exemplo n.º 1
0
        public void RegisterStagesOnColdsteelInitializerIsInvokedWhenComponentIsInitialized()
        {
            var initializer        = new MockColdsteelInitializer();
            var coldsteelComponent = new ColdsteelComponent(new Game(), initializer);

            coldsteelComponent.Initialize();
            Assert.IsTrue(initializer.RegisterStagesWasInvoked);
        }
Exemplo n.º 2
0
        public void InitializeControlsOnColdsteelInitializerIsProvidedWithInputObject()
        {
            var initializer        = new MockColdsteelInitializer();
            var coldsteelComponent = new ColdsteelComponent(new Game(), initializer);

            coldsteelComponent.Initialize();
            Assert.IsNotNull(initializer.ProvidedInputObject);
        }
Exemplo n.º 3
0
        public void AStageIsLoadedWhenInitializeIsComplete()
        {
            var initializer        = new MockColdsteelInitializer();
            var coldsteelComponent = new ColdsteelComponent(new Game(), initializer);

            coldsteelComponent.Initialize();
            var mgr = coldsteelComponent.GameStageManager;

            Assert.IsNotNull(mgr.ActiveGameStage);
        }