コード例 #1
0
        public virtual void TestSetup()
        {
            App = AppInitializer.StartApp(Platform);

            App.Screenshot("App Launched");

            MultipleEntryPage       = new MultipleEntryPage(App, Platform);
            OptionSelectionPage     = new OptionSelectionPage(App, Platform);
            PickEntryReturnTypePage = new PickEntryReturnTypePage(App, Platform);
        }
コード例 #2
0
        public void VerifyKeyboardReturnType(ReturnType returnType, CustomEntryType customEntryType)
        {
            //Arrange
            var expectedCustomizableEntryPlaceholder = returnType.ToString();

            //Act
            OptionSelectionPage.SetEntryPickerType(customEntryType);
            OptionSelectionPage.TapOpenSelectEntryPageButton();

            PickEntryReturnTypePage.SelectReturnTypeFromPicker(returnType);

            //Assert
            var retrievedCustomizableEntryPlaceholder = PickEntryReturnTypePage.CustomizableEntryPlaceholder;

            Assert.AreEqual(expectedCustomizableEntryPlaceholder, retrievedCustomizableEntryPlaceholder);
        }
コード例 #3
0
        public void EnterTextIntoMultipleEntriesUsingReturnButton(CustomEntryType customEntryType)
        {
            //Arrange
            const string enteredText = "Hello World";
            var          expectedLabelTextStringBuilder = GetExpectedLabelText(enteredText);

            //Act
            OptionSelectionPage.SetEntryPickerType(customEntryType);
            OptionSelectionPage.TapOpenMultipleEntryPageButton();

            MultipleEntryPage.EnterTextIntoAllEntrysUsingReturnButton(enteredText);

            //Assert
            var retrievedLabelText = MultipleEntryPage.ResultsLabelText;

            Assert.AreEqual(expectedLabelTextStringBuilder, retrievedLabelText);
        }
コード例 #4
0
        public override void TestSetup()
        {
            base.TestSetup();

            OptionSelectionPage.WaitForPageToLoad();
        }