Exemplo n.º 1
0
        public void ProgressOnRelayout()
        {
            tlog.Debug(tag, $"ProgressOnEnabled START");

            var testingTarget = new ProgressImpl()
            {
                Size = new Size(100, 200)
            };

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

            try
            {
                testingTarget.OnRelayout(new Vector2(1920, 1080), null);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"ProgressOnEnabled END (OK)");
        }
Exemplo n.º 2
0
        public void ProgressAccessibilityShouldReportZeroChildren()
        {
            tlog.Debug(tag, $"ProgressAccessibilityShouldReportZeroChildren START");

            var testingTarget = new ProgressImpl()
            {
                Size = new Size(100, 200)
            };

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

            var result = testingTarget.AccessibilityShouldReportZeroChildrenImpl();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"ProgressAccessibilityShouldReportZeroChildren END (OK)");
        }
Exemplo n.º 3
0
        public void ProgressOnEnabled()
        {
            tlog.Debug(tag, $"ProgressOnEnabled START");

            var testingTarget = new ProgressImpl();

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

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

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