public void Test() { var testObject = new TestClassWithStepsReturningTheirText(1, "some input"); var steps = new DefaultMethodNameStepScanner().Scan(TestContext.GetContext(testObject)).ToList(); AssertStep(steps[0], "Given inputs 1 and some input", ExecutionOrder.SetupState); AssertStep(steps[1], "When input 2 is applied on 123", ExecutionOrder.Transition); AssertStep(steps[2], "Then some assertions", ExecutionOrder.Assertion, true); }
public void Test() { var testObject = new TestClassWithStepsReturningTheirText(1, "some input"); var steps = new DefaultMethodNameStepScanner().Scan(TestContext.GetContext(testObject)).ToList(); AssertStep(steps[0], "Given inputs 1 and some input", ExecutionOrder.SetupState); AssertStep(steps[1], "When input 2 is applied on 123", ExecutionOrder.Transition); AssertStep(steps[2], "Then some assertions", ExecutionOrder.Assertion, true); }