Esempio n. 1
0
        public override void _Focus()
        {
            var remote = new StateViewContainerRemote(App, Test.VisualElement.Focus, PlatformViewType);

            remote.GoTo();

            Assert.IsFalse(IsFocused());
            remote.TapView();
            Assert.IsTrue(IsFocused());
            App.Tap("Go");             // Won't do anything, we just need to take focus away from the Entry
            Assert.IsFalse(IsFocused());
        }
Esempio n. 2
0
        public override void _Focus()
        {
            var remote = new StateViewContainerRemote(App, Test.VisualElement.Focus, PlatformViewType);

            remote.GoTo();
            bool isFocused = System.Convert.ToBoolean(App.Query("FocusStateLabel")[0].ReadText());

            Assert.IsFalse(isFocused);
            remote.TapView();
            isFocused = System.Convert.ToBoolean(App.Query("FocusStateLabel")[0].ReadText());
            Assert.IsTrue(isFocused);
            App.Tap("FocusStateLabel");
            isFocused = System.Convert.ToBoolean(App.Query("FocusStateLabel")[0].ReadText());
            Assert.IsFalse(isFocused);
        }