Exemplo n.º 1
0
        public void AreAqualHotelCityAndDestinationCity()
        {
            string expectedDestinationCity = "Moscow";
            string expectedDepartDate      = "28 December, Sa";

            HotelPage hotelPage = new FlightsPage()
                                  .EnterDepartureCity("Minsk")
                                  .EnterDestinationCity(expectedDestinationCity)
                                  .EnterDepartDate(expectedDepartDate)
                                  .ClickHotelButton();

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

            Assert.AreEqual(expectedList, actualList);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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");
        }
Exemplo n.º 4
0
        public void AreAqualHotelCityAndDestinationCity()
        {
            string expectedDestinationCity = "Vilnius";
            string expectedDepartDate      = "22" +
                                             " December";

            HotelPage hotelPage = new FlightsPage()
                                  .EnterDepartureCity("Vena")
                                  .EnterDestinationCity(expectedDestinationCity)
                                  .EnterDepartDate(expectedDepartDate)
                                  .ClickHotelButton();

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

            Assert.AreEqual(expectedList, actualList);

            Logger.Log.Info(" Are aqual hotel city and destination Test");
        }