public void execute_runs_the_before_step() { string sectionName = typeof(ArithmeticFixture).GetFixtureAlias(); Step step = new Step().WithChildren(sectionName, new Step(), new Step(), new Step()); var context = new AutoPerformingTestContext(); ITestContext calledContext = null; IStep calledStep = null; new EmbeddedSectionGrammar <ArithmeticFixture>() .Before((s, c) => { calledContext = c; calledStep = s; }) .Execute(step, context); calledContext.ShouldBeTheSameAs(context); calledStep.ShouldBeTheSameAs(step); }