public void AppendingMultipleStrings() { var builder = new ColoredMultistringBuilder(); builder.Append(new ColoredString[] {"Hello, ", "world"}); builder.ToString().Should().Be("Hello, world"); }
public void AppendingMultipleStringsWithLines() { var builder = new ColoredMultistringBuilder(); builder.AppendLine(new ColoredString[] { "Hello, ", "world" }); builder.ToString().Should().Be("Hello, world" + Environment.NewLine); }
public void SimpleUsage() { var builder = new ColoredMultistringBuilder(); builder.Append("Hello"); builder.Append(", world"); builder.ToString().Should().Be("Hello, world"); }