I am using SpecFlow with C# for running some BDD test scenarios. I have defined a scenario outline and I need a method to run after each scenario outline example. The attribute [AfterScenario] is present on that method. However, I can see that the [AfterScenario] method is execute twice after each scenario outline example.
Don't know if it makes any difference, but at one point I had the same [AfterScenario] method in another class by mistake and both of them were run. However, I have deleted one of them and rebuilt the project. Maybe something was left somewhere?
I have seen some examples where people complain about AfterScenario and BeforeScenario hooks running twice, but that's when tags are present. I am not using any tags.