public void TestAppendEmptyLine() { // Arrange var actual = new StringBuilder(); var expected = new StringBuilder(); expected.AppendLine(); // Act actual.AppendEmptyLine(); // Assert Assert.AreEqual(expected.ToString(), actual.ToString()); }
public void TestAppendEmptyLineWithDebug() { using (ShimsContext.Create()) { // Arrange var actual = new StringBuilder(); ShimConsole.WriteString = s => { }; ShimConsole.WriteLineString = s => { }; var expected = new StringBuilder(); expected.AppendLine(); // Act actual.AppendEmptyLine(true); // Assert Assert.AreEqual(expected.ToString(), actual.ToString()); } }