I am using SpecFlow with NUnit3 and am trying to access the step context within a hook.
I am running the tests in parallel so not using any static instance contexts, but using the parameter resolving feature of SpecFlow.
With a hook like below, the ScenarioContext instance resolves fine, but the ScenarioStepContext causes the binding to throw error:
Primitive types or structs cannot be resolved: TechTalk.SpecFlow.Bindings.StepDefinitionType (resolution path: TechTalk.SpecFlow.ScenarioStepContext->TechTalk.SpecFlow.StepInfo)'
[AfterStep]
public void LogStepResult(ScenarioStepContext scenarioStepContext,
ScenarioContext scenarioContext)
{
}