public void HoverGetDeviceId() { tlog.Debug(tag, $"HoverGetDeviceId START"); /* TEST CODE */ Hover hover = new Hover(); Assert.AreEqual(-1, hover.GetDeviceId(0), "Should be equals to the origin value of DeviceId"); hover.Dispose(); tlog.Debug(tag, $"HoverGetDeviceId END (OK)"); Assert.Pass("HoverGetDeviceId"); }
public void HoverGetHitView() { tlog.Debug(tag, $"HoverGetHitView START"); /* TEST CODE */ Hover hover = new Hover(); Assert.IsNotInstanceOf <View>(hover.GetHitView(0), "non-existent point returns an empty handle"); hover.Dispose(); tlog.Debug(tag, $"HoverGetHitView END (OK)"); Assert.Pass("HoverGetHitView"); }
public void HoverTime() { tlog.Debug(tag, $"HoverTime START"); /* TEST CODE */ Hover hover = new Hover(); Assert.AreEqual(0u, hover.Time, "Should be equals to the origin value of Time"); hover.Dispose(); tlog.Debug(tag, $"HoverTime END (OK)"); Assert.Pass("HoverTime"); }
public void HoverGetState() { tlog.Debug(tag, $"HoverGetState START"); /* TEST CODE */ Hover hover = new Hover(); Assert.AreEqual(PointStateType.Finished, hover.GetState(0), "Should be equals to the origin value of state"); hover.Dispose(); tlog.Debug(tag, $"HoverGetState END (OK)"); Assert.Pass("HoverGetState"); }
public void HoverGetScreenPosition() { tlog.Debug(tag, $"HoverGetScreenPosition START"); /* TEST CODE */ Hover hover = new Hover(); Assert.AreEqual(0.0f, hover.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X"); Assert.AreEqual(0.0f, hover.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y"); hover.Dispose(); tlog.Debug(tag, $"HoverGetScreenPosition END (OK)"); Assert.Pass("HoverGetScreenPosition"); }
public void HoverConstructorWithTime() { tlog.Debug(tag, $"HoverConstructorWithTime START"); var testingTarget = new Hover(300); 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, $"HoverConstructorWithTime END (OK)"); Assert.Pass("HoverConstructor"); }
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 HoverGetHitView() { tlog.Debug(tag, $"HoverGetHitView START"); var testingTarget = new Hover(); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <Hover>(testingTarget, "Should be an instance of Hover type."); tlog.Debug(tag, "HitView : " + testingTarget.GetHitView(0)); testingTarget.Dispose(); tlog.Debug(tag, $"HoverGetHitView END (OK)"); Assert.Pass("HoverGetHitView"); }
public void HoverGetScreenPosition() { tlog.Debug(tag, $"HoverGetScreenPosition START"); var testingTarget = new Hover(); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <Hover>(testingTarget, "Should be an instance of Hover type."); Assert.AreEqual(0.0f, testingTarget.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X"); Assert.AreEqual(0.0f, testingTarget.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y"); testingTarget.Dispose(); tlog.Debug(tag, $"HoverGetScreenPosition END (OK)"); Assert.Pass("HoverGetScreenPosition"); }
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"); }