public void TestGetState() { var gamePad = new XnaGamePad(PlayerIndex.One); gamePad.GetState(); // No exception means success }
public void TestIsAttached() { var gamePad = new XnaGamePad(PlayerIndex.One); bool attached = gamePad.IsAttached; Assert.IsTrue(attached || !attached); // result doesn't matter }
public void TestName() { var gamePad = new XnaGamePad(PlayerIndex.One); var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad); StringAssert.Contains("chat pad", keyboard.Name.ToLower()); }
public void TestGetState() { var gamePad = new XnaGamePad(PlayerIndex.One); var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad); keyboard.GetState(); // No exception means success }
public void TestName() { var gamePad = new XnaGamePad(PlayerIndex.One); StringAssert.Contains("game pad", gamePad.Name.ToLower()); }