public void AllocFree_NonZeroPointerIsSuccessfullyReleased() { var size = new UIntPtr(1024); var ptr = CV.Alloc(size); Assert.AreNotEqual(ptr, IntPtr.Zero); CV.Free(ref ptr); Assert.AreEqual(ptr, IntPtr.Zero); }
public void AllocFree_NonZeroPointerIsSuccessfullyReleased() { var size = new UIntPtr(1024); var ptr = CV.Alloc(size); Assert.AreNotEqual(ptr, IntPtr.Zero); CV.Free(ref ptr); Assert.AreEqual(ptr, IntPtr.Zero); }