Ejemplo n.º 1
0
 public void page_objects()
 {
     Car acura = new Car("Acura", "Integra", "Sea Green", "You have chosen a Sea Green Acura Integra. Nice car!");
     CarMenu page = new CarMenu(browser);
     var actual_message = page.select_a_car(acura);
     Assert.AreEqual(acura.Message, actual_message);
 }
 public void data_driven_car_choices()
 {
     CarLoader loader = new CarLoader();
     IList<Car> cars = loader.load_list();
     foreach (var car in cars)
     {
         CarMenu page = new CarMenu(browser);
         var message = page.select_a_car(car);
         Assert.AreEqual(car.Message, message);
     }
 }