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

            var testingTarget = new MyAppBar()
            {
                Size      = new Size(200, 600),
                Focusable = true,
                Title     = "AppBarTest"
            };

            var result = testingTarget.OnAccessibilityGetName();

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

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

            var testingTarget = new MyAppBar();

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

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

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

            var testingTarget = new MyAppBar()
            {
                Size      = new Size(200, 600),
                Focusable = true,
            };

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

            testingTarget.NavigationContent = new View()
            {
                Size = new Size(200, 500),
            };

            testingTarget.TitleContent = new View()
            {
                Size = new Size(200, 100),
            };

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

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