public void ShouldProduceStringEmptyOnBuildWhenNoAppendWasCalled() { var outputBuilder = new NullOutputBuilder(); var result = outputBuilder.Build(); result.Should().BeEmpty(); }
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(); }