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