Exemple #1
0
        public void MarkdownTableGeneratorAdd1Option3Headers()
        {
            MarkdownTableGenerator generator = new MarkdownTableGenerator("Test", "Header1", "Header2", "Header3");

            generator.AddOption("Test1", "Test2", "Test3");
            StringAssert.AreEqualIgnoringCase("## Test\n\n|Header1|Header2|Header3|\n|-------|-------|-------|\n|Test1|Test2|Test3|\n", generator.ToString());
        }
Exemple #2
0
 public void MarkdownTableGeneratorTooManyOptions()
 {
     Assert.Throws(typeof(ArgumentOutOfRangeException), () =>
     {
         MarkdownTableGenerator generator = new MarkdownTableGenerator("Test", "Header1", "Header2", "Header3");
         generator.AddOption("Test1", "Test2");
     });
 }
Exemple #3
0
        public void MarkdownTableGenerator3Headers()
        {
            MarkdownTableGenerator generator = new MarkdownTableGenerator("Test", "Header1", "Header2", "Header3");

            StringAssert.AreEqualIgnoringCase("## Test\n\n|Header1|Header2|Header3|\n|-------|-------|-------|\n", generator.ToString());
        }