Ejemplo n.º 1
0
        public void AreEqualInputInfoAndInfoInSearchPage()
        {
            string expextedDepartureCity   = "Minsk";
            string expectedDestinationCity = "Moscow";
            string expectedDepartDate      = "28 December, Sa";

            FlightsPage flightsPage = new FlightsPage()
                                      .EnterDepartureCity(expextedDepartureCity)
                                      .EnterDestinationCity(expectedDestinationCity)
                                      .EnterDepartDate(expectedDepartDate)
                                      .Enter();

            string[] expectedList = { expextedDepartureCity, expectedDestinationCity, expectedDepartDate };
            string[] actualList   = { flightsPage.GetDepartureCity(), flightsPage.GetDestinationCity(), flightsPage.GetDepartDate() };

            Assert.AreEqual(expectedList, actualList);
        }
Ejemplo n.º 2
0
        public void AreEqualInputInfoAndInfoInSearchPage()
        {
            string expextedDepartureCity   = "Vilnius";
            string expectedDestinationCity = "Vena";
            string expectedDepartDate      = "22 December";

            FlightsPage flightsPage = new FlightsPage()
                                      .EnterDepartureCity(expextedDepartureCity)
                                      .EnterDestinationCity(expectedDestinationCity)
                                      .EnterDepartDate(expectedDepartDate)
                                      .Enter();

            string[] expectedList = { expextedDepartureCity, expectedDestinationCity, expectedDepartDate };
            string[] actualList   = { flightsPage.GetDepartureCity(), flightsPage.GetDestinationCity(), flightsPage.GetDepartDate() };

            Assert.AreEqual(expectedList, actualList);
            Logger.Log.Info(" Are Equal Input Info And Info In Search Page Test");
        }