Beispiel #1
0
        public virtual 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)");
        }
Beispiel #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);
        }
Beispiel #3
0
        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);
        }