Ejemplo n.º 1
0
        public void Clicked()
        {
            var remote = new EventViewContainerRemote(App, Test.ImageButton.Clicked, PlatformViewType);

            remote.GoTo();

            var textBeforeClick = remote.GetEventLabel().Text;

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

            // Click ImageButton
            remote.TapView();

            var textAfterClick = remote.GetEventLabel().Text;

            Assert.AreEqual("Event: Clicked (fired 1)", textAfterClick);
        }
Ejemplo n.º 2
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)");
        }