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

            var testingTarget = new ScrollableBase()
            {
                Size               = new Size(100, 2),
                BackgroundColor    = Color.Cyan,
                ScrollingDirection = ScrollableBase.Direction.Vertical,
            };

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <ScrollableBase>(testingTarget, "Should return ScrollableBase instance.");

            using (PanGesture gesture = new PanGesture())
            {
                try
                {
                    testingTarget.OnAccessibilityPan(gesture);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception : Failed!");
                }
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan END (OK)");
        }