Example #1
0
        public void AlertDialogAccessibilityGetName()
        {
            tlog.Debug(tag, $"AlertDialogAccessibilityGetName START");

            var testingTarget = new MyAlertDialog();

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

            testingTarget.Title = "AlertTest";
            var result = testingTarget.OnAccessibilityGetName();

            tlog.Debug(tag, "AccessibilityGetName : " + result);

            testingTarget.Dispose();
            tlog.Debug(tag, $"AlertDialogAccessibilityGetName END (OK)");
        }
Example #2
0
        public void AlertDialogAccessibilityGetDescription()
        {
            tlog.Debug(tag, $"AlertDialogAccessibilityGetDescription START");

            var testingTarget = new MyAlertDialog();

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

            testingTarget.Content = new TextLabel()
            {
                //Text = "AlertContent"
            };
            testingTarget.Message = "AlertContent";
            var result = testingTarget.OnAccessibilityGetDescription();

            tlog.Debug(tag, "AccessibilityGetDescription : " + result);

            testingTarget.Dispose();
            tlog.Debug(tag, $"AlertDialogAccessibilityGetDescription END (OK)");
        }
Example #3
0
        public void AlertDialogAccessibilityCalculateStates()
        {
            tlog.Debug(tag, $"AlertDialogAccessibilityCalculateStates START");

            var testingTarget = new MyAlertDialog()
            {
                Size         = new Size(100, 100),
                TitleContent = new View()
                {
                    Size = new Size(100, 20)
                },
                Content = new View()
                {
                    Size = new Size(100, 80)
                },
                ActionContent = new View()
                {
                    Size = new Size(50, 50)
                },
            };

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

            try
            {
                var result = testingTarget.OnAccessibilityCalculateStates();
                tlog.Debug(tag, "AccessibilityCalculateStates : " + result);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"AlertDialogAccessibilityCalculateStates END (OK)");
        }
Example #4
0
        public void AlertDialogDispose()
        {
            tlog.Debug(tag, $"AlertDialogDispose START");

            var testingTarget = new MyAlertDialog()
            {
                Size         = new Size(100, 100),
                TitleContent = new View()
                {
                    Size = new Size(100, 20)
                },
                Content = new View()
                {
                    Size = new Size(100, 80)
                },
                ActionContent = new View()
                {
                    Size = new Size(50, 50)
                },
            };

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

            try
            {
                testingTarget.OnDispose(DisposeTypes.Explicit);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

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