public void NativeImageSourceReleaseBuffer() { tlog.Debug(tag, $"NativeImageSourceReleaseBuffer START"); var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Bits16); Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource"); Assert.IsInstanceOf <NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type."); var result = testingTarget.ReleaseBuffer(); Assert.IsTrue(result); testingTarget.Dispose(); tlog.Debug(tag, $"NativeImageSourceReleaseBuffer END (OK)"); }
public void NativeImageSourceReleaseBuffer() { tlog.Debug(tag, $"NativeImageSourceReleaseBuffer START"); var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Bits16); Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource"); Assert.IsInstanceOf <NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type."); try { testingTarget.ReleaseBuffer(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"NativeImageSourceReleaseBuffer END (OK)"); }