Example #1
0
        public void TestName()
        {
            var gamePad  = new XnaGamePad(PlayerIndex.One);
            var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);

            StringAssert.Contains("chat pad", keyboard.Name.ToLower());
        }
Example #2
0
        public void TestIsAttached()
        {
            var  gamePad  = new XnaGamePad(PlayerIndex.One);
            var  keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);
            bool attached = keyboard.IsAttached;

            Assert.IsTrue(attached || !attached); // result doesn't matter
        }
Example #3
0
        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);
   var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);
   StringAssert.Contains("chat pad", keyboard.Name.ToLower());
 }
 public void TestIsAttached() {
   var gamePad = new XnaGamePad(PlayerIndex.One);
   var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);
   bool attached = keyboard.IsAttached;
   Assert.IsTrue(attached || !attached); // result doesn't matter
 }
 public void TestGetState() {
   var gamePad = new XnaGamePad(PlayerIndex.One);
   var keyboard = new XnaKeyboard(PlayerIndex.One, gamePad);
   keyboard.GetState();
   // No exception means success
 }