public void HoverGetHoverFromPtr() { tlog.Debug(tag, $"HoverGetHoverFromPtr START"); var hover2 = new Hover(2); Hover hover = Hover.GetHoverFromPtr(Hover.getCPtr(hover2).Handle); Assert.Pass("HoverGetHoverFromPtr"); hover2.Dispose(); hover.Dispose(); tlog.Debug(tag, $"HoverGetHoverFromPtr END (OK)"); Assert.Pass("HoverGetHoverFromPtr"); }
public void HoverGetHoverFromPtr() { tlog.Debug(tag, $"HoverGetHoverFromPtr START"); using (Hover hover = new Hover(300)) { var testingTarget = Hover.GetHoverFromPtr(hover.SwigCPtr.Handle); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <Hover>(testingTarget, "Should be an instance of Hover type."); testingTarget.Dispose(); } tlog.Debug(tag, $"HoverGetHoverFromPtr END (OK)"); Assert.Pass("HoverGetHoverFromPtr"); }