public void TestMultipleDispose()
        {
            LongExposureInfraredFrameData data = new LongExposureInfraredFrameData();
            data.Dispose();
            //Second call to dispose should do nothing
            data.Dispose();

            Assert.AreEqual(data.DataPointer, IntPtr.Zero);
        }
 public void TestConstrutor()
 {
     LongExposureInfraredFrameData data = new LongExposureInfraredFrameData();
     bool pass = data.DataPointer != IntPtr.Zero;
     data.Dispose();
     Assert.AreEqual(true, pass);
 }
 public void TestSize()
 {
     LongExposureInfraredFrameData data = new LongExposureInfraredFrameData();
     int expected = 512 * 424 * 2;
     bool pass = data.SizeInBytes == expected;
     data.Dispose();
     Assert.AreEqual(pass, true);
 }
        public void TestDisposeAccess()
        {
            LongExposureInfraredFrameData data = new LongExposureInfraredFrameData();
            data.Dispose();

            //Should throw exception
            var pointer = data.DataPointer;
        }
 public void TestDisposedSize()
 {
     LongExposureInfraredFrameData data = new LongExposureInfraredFrameData();
     data.Dispose();
     Assert.AreEqual(data.SizeInBytes, 0);
 }
 public void TestDispose()
 {
     LongExposureInfraredFrameData data = new LongExposureInfraredFrameData();
     data.Dispose();
     Assert.AreEqual(data.DataPointer, IntPtr.Zero);
 }