public void TestAttachAndDetach() {
   var gamePad = new MockedGamePad();
   Assert.IsFalse(gamePad.IsAttached);
   gamePad.Attach();
   Assert.IsTrue(gamePad.IsAttached);
   gamePad.Detach();
   Assert.IsFalse(gamePad.IsAttached);
 }
Exemple #2
0
        public void TestAttachAndDetach()
        {
            var gamePad = new MockedGamePad();

            Assert.IsFalse(gamePad.IsAttached);
            gamePad.Attach();
            Assert.IsTrue(gamePad.IsAttached);
            gamePad.Detach();
            Assert.IsFalse(gamePad.IsAttached);
        }