コード例 #1
0
        internal void CompareSettingsErrorMessages()
        {
            collectionTitle.BlankValue();
            var sg          = new StringGenerator();
            var inputString = sg.AlphanumericString(8);

            payPalEmail.InputKey(inputString);
            OperatingSystem os  = Environment.OSVersion;
            PlatformID      pid = os.Platform;

            switch (pid)
            {
            case PlatformID.Win32NT:
            case PlatformID.Win32S:
            case PlatformID.Win32Windows:
            case PlatformID.WinCE:
                CommonPage commonPage = new CommonPage(Driver, _appSettings);
                commonPage.GenerateImage();
                uploadSignPhoto.ClickButton();
                commonPage.UploadPhoto();
                Wait.Seconds(2);
                Assert.AreEqual(signUploadError.GetElementValue(), ErrorMessages.SignUploadError, "Sign upload error is not as expected.");
                break;
            }
            Assert.Multiple(() =>
            {
                Assert.AreEqual(collectionTitleError.GetElementValue(), ErrorMessages.CollectionTitleError, "Collection title error is not as expected.");
                Assert.AreEqual(paypalEmailError.GetElementValue(), ErrorMessages.PaypalEmailError, "PayPal Email error is not as expected.");
            });
        }