I am setting up NUnit C# tests using SpecFlow, but the ones declared in my SpecFlowFeature don't seem to be picked up by the Text Explorer. When trying to manually run the scenario (by right-clicking on them) I get the following error:
"Cannot access a disposed object. Object name: 'GherkinLanguageService'"
...which doesn't ring any bell at all. Anyone has any suggestion on how to allow them to run?
The Feature Code is as follows:
Feature: SpecFlowFeature
As a user
I would like to go to the what we do page
In order to see what we do information
@UI
Scenario: What we do Browsing
Given I have the home page open
When I select what we do from the menu
Then I see the what we do information
@UI
Scenario: Add an Asset to a Client page
Given I have the home page open
When I go to a client page
And I click the Add Download button
And I fill in the form
And I choose a file to upload
And I submit the form
Then I see the newly-submitted file
And the Steps definitions are all automatically generated.
EDIT: List of installed NuGet packages in my Test Project:
- Microsoft.Net.Compilers 1.1.0-rc1
- NUnit 3.4.0
- NUnitTestAdapter 2.0.0
- Selenium.WebDriver 2.53.0
- SpecFlow 2.1.0
- SpecFlow.NUnit 2.1.0
- SpecFlow.NUnit.Runners 2.1.0