Ejemplo n.º 1
0
        public void CreateHeader_FromClonedWithInitialDepth_ShouldCreateHeaderWithTwoHashTag()
        {
            IMarkdownHeaderBuilder builder = new MarkdownHeaderBuilder();

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

            Assert.AreEqual("## Test", header);
        }
Ejemplo n.º 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"));
        }