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

            var testingTarget = new LongPressGestureDetector();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "should be an instance of testing target class!");

            using (View view = new View())
            {
                testingTarget.Attach(view);
                testingTarget.GetAttachedView(0);
                testingTarget.Detach(view);
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"GestureDetectorGetAttachedView END (OK)");
            Assert.Pass("GestureDetectorGetAttachedView");
        }