Exemple #1
0
 public void UpdateMovementTest()
 {
     Character_Accessor target = new Character_Accessor(); // TODO: Initialize to an appropriate value
     KeyboardState aCurrentKeyboardState = new KeyboardState(); // TODO: Initialize to an appropriate value
     target.UpdateMovement(aCurrentKeyboardState);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Exemple #2
0
 public void UpdateMovementTestLeft()
 {
     Character_Accessor target = new Character_Accessor();
     KeyboardState aCurrentKeyboardState = new KeyboardState(Keys.Left);
     target.UpdateMovement(aCurrentKeyboardState);
     Assert.IsTrue(target.mSpeed.X.Equals(150) && target.mDirection.X.Equals(-1));//Check if direction and speed are correct
 }