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