I've recently started working on a project with which I want to try Behavior-driven Development. I have chosen SpecFlow as my testing framework since it's a C# application. From what I gathered reading on this topic on the net, one upside of BDD over TDD is that BDD can be used to test one's UI. However, I am having some trouble doing this with SpecFlow. For my first test, I wanted to write the following functionality:
A user clicks a button that presents him with a FolderBrowseDialog, after selecting a folder the application searches the folder for files relevant to the application and loads those files into the application.
The following scenario is more or less what I want to write:
Scenario: Add Model
Given I am on the main screen
When I click Add Model
And select a folder
And the folder contains a model
Then the model is loaded into the application
What code do I need to have SpecFlow click stuff on that FolderBrowseDialog to complete this test?