示例#1
0
        public void RulerGetPageFromPosition()
        {
            tlog.Debug(tag, $"RulerGetPageFromPosition START");

            using (DefaultRuler ruler = new DefaultRuler())
            {
                var testingTarget = new Ruler(ruler.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Can't create success object Ruler.");
                Assert.IsInstanceOf <Ruler>(testingTarget, "Should return Ruler instance.");

                var result = testingTarget.GetPageFromPosition(15.0f, true);
                tlog.Debug(tag, "Position : " + result);

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"RulerGetPageFromPosition END (OK)");
        }