public void GherkinTitleShouldBe()
        {
            var sut    = new ScenarioBuilder(Internationalization.Default, "method_description");
            var result = sut.Build();

            result.Name.Should().Contain("method_description");
        }
        public void ScenarioBuilderBuildNoSteps()
        {
            var sut = new ScenarioBuilder(Internationalization.Default, "test method name");

            sut.AddDescription("a description of the scenario");
            var result = sut.Build();

            result.Name.Should().Contain("test method name");
            result.Description.Should().Contain("a description of the scenario");
            result.Keyword.Syntax.Should().Be(GherkinKeyword.Scenario);
            result.Steps.Count().Should().Be(0);
        }
        public void ScenarioBuilderWithOneStep()
        {
            var sut = new ScenarioBuilder(Internationalization.Default, string.Empty);

            sut.AddStep(this);
            var result = sut.Build();

            result.Steps.Count().Should().Be(1);
            var step = result.Steps.ElementAt(0);

            step.Parent.Should().Be(GherkinScenarioBlock.Given);
            step.Step.Syntax.Should().Be(GherkinStep.Given);
            step.Description.Should().Contain("the system is in this state");
        }