   func testTextFieldShouldHaveFocusWhenUserTapsOnTableViewRow()
   {
     // Given
+    
+    // When
     let indexPath = NSIndexPath(forRow: 0, inSection: 0)
-    
+    createOrderViewController.tableView(createOrderViewController.tableView, didSelectRowAtIndexPath: indexPath)
+    
+    // Then
     let textField = createOrderViewController.textFields[0]
-    
-    // When
-    createOrderViewController.tableView(createOrderViewController.tableView, didSelectRowAtIndexPath: indexPath)
-    
-    // Then
     XCTAssert(textField.isFirstResponder(), "The text field should have keyboard focus when user taps on the corresponding table view row")
   }
   

    // When
    
    // Then
    XCTAssertEqual(createOrderViewController.shippingMethodTextField.inputView, createOrderViewController.shippingMethodPicker, "")
    XCTAssertEqual(createOrderViewController.expirationDateTextField.inputView, createOrderViewController.expirationDatePicker, "")
  }
}

    let currentTextField = createOrderViewController.textFields[0]
    let nextTextField = createOrderViewController.textFields[1]
    currentTextField.becomeFirstResponder()
    
    // When
    createOrderViewController.textFieldShouldReturn(currentTextField)
