Пример #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
 }
Пример #9
0
 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
 }