public void Pressed()
        {
            var remote = new EventViewContainerRemote(App, Test.ImageButton.Pressed, PlatformViewType);

            remote.GoTo();

            var textBeforeClick = remote.GetEventLabel().Text;

            Assert.AreEqual("Event: Pressed (none)", textBeforeClick);

            // Press ImageButton
            remote.TouchAndHoldView();

            var textAfterClick = remote.GetEventLabel().Text;

            Assert.AreEqual("Event: Pressed (fired 1)", textAfterClick);
        }
Example #2
0
        public void Clicked()
        {
            var remote = new EventViewContainerRemote(App, Test.Button.Clicked, PlatformViewType);

            remote.GoTo();

            var textBeforeClick = remote.GetEventLabel().Text;

            Assert.AreEqual("Event: Clicked (none)", textBeforeClick);

            // Click Button
            remote.TapView();

            var textAfterClick = remote.GetEventLabel().Text;

            Assert.AreEqual("Event: Clicked (fired 1)", textAfterClick);
        }
Example #3
0
        public void Completed()
        {
            var remote = new EventViewContainerRemote(App, Test.Entry.Completed, PlatformViewType);

            remote.GoTo();

            App.EnterText(q => q.Raw(remote.ViewQuery), "Test");

            App.PressEnter();

            var eventLabelText = remote.GetEventLabel().Text;

            Assert.AreEqual(eventLabelText, "Event: Completed (fired 1)");
        }
Example #4
0
        public void Completed()
        {
            var remote = new EventViewContainerRemote(App, Test.Entry.Completed, PlatformViewType);

            remote.GoTo();

            App.EnterText(q => q.Raw(remote.ViewQuery), "Test");

            if (App is AndroidApp)
            {
                ((AndroidApp)App).PressUserAction(UserAction.Done);
            }
            else
            {
                App.PressEnter();
            }

            var eventLabelText = remote.GetEventLabel().Text;

            Assert.AreEqual(eventLabelText, "Event: Completed (fired 1)");
        }