Ejemplo n.º 1
0
        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)");
        }
Ejemplo n.º 2
0
        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)");
        }
Ejemplo n.º 3
0
        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)");
        }
Ejemplo n.º 4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FixedRuler obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }