private static void Check(Id @object) { Assert.IsNotNull(@object, "Instance cannot be null"); Assert.AreNotEqual(IntPtr.Zero, @object.NativePointer, "Native pointer cannot be null"); } }