示例#1
0
        public void CreateHeader_FromClonedWithInitialDepth_ShouldCreateHeaderWithTwoHashTag()
        {
            IMarkdownHeaderBuilder builder = new MarkdownHeaderBuilder();

            string header = builder.Clone().CreateHeader("Test");

            Assert.AreEqual("## Test", header);
        }
示例#2
0
        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"));
        }