public void FixedRulerConstructorWithSpacing() { tlog.Debug(tag, $"FixedRulerConstructorWithSpacing START"); var testingTarget = new FixedRuler(0.3f); Assert.IsNotNull(testingTarget, "Can't create success object FixedRuler."); Assert.IsInstanceOf <FixedRuler>(testingTarget, "Should return FixedRuler instance."); testingTarget.Dispose(); tlog.Debug(tag, $"FixedRulerConstructorWithSpacing END (OK)"); }
public void FixedRulerSnap() { tlog.Debug(tag, $"FixedRulerSnap START"); var testingTarget = new FixedRuler(); Assert.IsNotNull(testingTarget, "Can't create success object FixedRuler."); Assert.IsInstanceOf <FixedRuler>(testingTarget, "Should return FixedRuler instance."); try { var result = testingTarget.Snap(0.3f, 0.1f); tlog.Debug(tag, "Snap :" + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"FixedRulerSnap END (OK)"); }
public void FixedRulerGetPositionFromPage() { tlog.Debug(tag, $"FixedRulerGetPositionFromPage START"); var testingTarget = new FixedRuler(); Assert.IsNotNull(testingTarget, "Can't create success object FixedRuler."); Assert.IsInstanceOf <FixedRuler>(testingTarget, "Should return FixedRuler instance."); try { var result = testingTarget.GetPositionFromPage(1, out uint vloume, true); tlog.Debug(tag, "GetPositionFromPage :" + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"FixedRulerGetPositionFromPage END (OK)"); }