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); }
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); }
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"); }
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"); }