示例#1
0
        public void TestGetState()
        {
            var gamePad = new XnaGamePad(PlayerIndex.One);

            gamePad.GetState();
            // No exception means success
        }
示例#2
0
        public void TestIsAttached()
        {
            var  gamePad  = new XnaGamePad(PlayerIndex.One);
            bool attached = gamePad.IsAttached;

            Assert.IsTrue(attached || !attached); // result doesn't matter
        }
示例#3
0
        public void TestName()
        {
            var gamePad  = new XnaGamePad(PlayerIndex.One);
            var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);

            StringAssert.Contains("chat pad", keyboard.Name.ToLower());
        }
示例#4
0
        public void TestGetState()
        {
            var gamePad  = new XnaGamePad(PlayerIndex.One);
            var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);

            keyboard.GetState();
            // No exception means success
        }
示例#5
0
        public void TestName()
        {
            var gamePad = new XnaGamePad(PlayerIndex.One);

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