public void CreateHeader_FromClonedWithInitialDepth_ShouldCreateHeaderWithTwoHashTag() { IMarkdownHeaderBuilder builder = new MarkdownHeaderBuilder(); string header = builder.Clone().CreateHeader("Test"); Assert.AreEqual("## Test", header); }
public void Clone_OfObject_ShouldIncreaseDepthByOne() { IMarkdownHeaderBuilder builder = new MarkdownHeaderBuilder(); IMarkdownHeaderBuilder clonedBuilder = builder.Clone(); Assert.AreEqual("# a", builder.CreateHeader("a")); Assert.AreEqual("## a", clonedBuilder.CreateHeader("a")); }