public void PressFireThenGameOver() { InGameStateFixture.MockGame game = CreateGame(); DogfightStateMachine s = new DogfightStateMachine(game); s.KeyDown(Keys.Space); game.SetGameOver(); s.Tick(1); Assert.AreEqual(DFState.GameOver, s.CurrentState); }
public void StartInPressFireState() { DogfightStateMachine s = new DogfightStateMachine(CreateGame()); Assert.AreEqual(DFState.PressFire, s.CurrentState); }
public void PressingFireChangesState() { DogfightStateMachine s = new DogfightStateMachine(CreateGame()); s.KeyDown(Keys.Space); Assert.AreEqual(DFState.InGame, s.CurrentState); }
public void Constr() { InGameStateFixture.MockGame game = CreateGame(); DogfightStateMachine s = new DogfightStateMachine(game); }