コード例 #1
0
        public void BackgroundBuilderBuildNoSteps()
        {
            var sut = new BackgroundBuilder(Internationalization.Default, string.Empty);

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

            result.Description.Should().Contain("a description of the background");
            result.Keyword.Syntax.Should().Be(GherkinKeyword.Background);
            result.Steps.Count().Should().Be(0);
        }