Example #1
0
        public void ShouldProduceStringEmptyOnBuildWhenNoAppendWasCalled()
        {
            var outputBuilder = new NullOutputBuilder();

            var result = outputBuilder.Build();

            result.Should().BeEmpty();
        }
Example #2
0
        public void ShouldProduceStringEmptyOnBuildWhenAppendWasCalledAnyNumberOfTimes()
        {
            var outputBuilder = new NullOutputBuilder();

            var numOfAppends = Any.Integer();

            for (var i = 0; i < numOfAppends; i++)
            {
                outputBuilder.Append(Any.String());
            }
            var result = outputBuilder.Build();

            result.Should().BeEmpty();
        }