public void UpdateTest_Game() { Game1_Accessor target = new Game1_Accessor(); GameTime gameTime = new GameTime(); target.state = Game1_Accessor.gamestate.menu; KeyboardState aCurrentKeyboardState = new KeyboardState(Keys.Space); target.Initialize(); target.Update(gameTime); Assert.IsTrue(target.state == Game1_Accessor.gamestate.story1, "Not moved to Story1"); }
public void UpdateTest() { Game1_Accessor target = new Game1_Accessor(); // TODO: Initialize to an appropriate value GameTime gameTime = null; // TODO: Initialize to an appropriate value target.Update(gameTime); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void UpdateTest1_Menu() { Game1_Accessor target = new Game1_Accessor(); GameTime gameTime = new GameTime(); target.Update(gameTime); Assert.IsNotNull(target.keystate, "keystate is null"); Assert.IsNotNull(target.lastKeyState, "lastKeystate is null"); Assert.IsTrue(target.state.value__ == 0, "state is play"); }