public void Test_DI_Initialization() { DirectInput di = new DirectInput(); di.Setup(); Assert.AreNotEqual(IntPtr.Zero, di.Handle); Assert.AreEqual(0, di.Release()); di.Dispose(); Assert.AreEqual(IntPtr.Zero, di.Handle); }