public void HoverGetCPtr() { tlog.Debug(tag, $"HoverGetCPtr START"); Hover hover = new Hover(); Hover.getCPtr(hover); Assert.Pass("HoverGetCPtr"); tlog.Debug(tag, $"HoverGetCPtr END (OK)"); Assert.Pass("HoverGetCPtr"); }
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.getCPtr(hover).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"); }
public void HoverGetCPtr() { tlog.Debug(tag, $"HoverGetCPtr START"); using (Hover hover = new Hover()) { try { Hover.getCPtr(hover); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } tlog.Debug(tag, $"HoverGetCPtr END (OK)"); Assert.Pass("HoverGetCPtr"); }
public void HoverConstructor() { tlog.Debug(tag, $"HoverConstructor START"); var hover1 = new Hover(); Assert.IsNotNull(hover1, "Can't create success object Hover"); Assert.IsInstanceOf <Hover>(hover1, "Should be an instance of Hover type."); var hover2 = new Hover(2); var hover3 = new Hover(hover2); var hover4 = new Hover(Hover.getCPtr(hover3).Handle, true); //hover4.Dispose(); hover3.Dispose(); hover2.Dispose(); hover1.Dispose(); tlog.Debug(tag, $"HoverConstructor END (OK)"); Assert.Pass("HoverConstructor"); }