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()); }
public void MarkdownTableGeneratorTooManyOptions() { Assert.Throws(typeof(ArgumentOutOfRangeException), () => { MarkdownTableGenerator generator = new MarkdownTableGenerator("Test", "Header1", "Header2", "Header3"); generator.AddOption("Test1", "Test2"); }); }
public void MarkdownTableGenerator3Headers() { MarkdownTableGenerator generator = new MarkdownTableGenerator("Test", "Header1", "Header2", "Header3"); StringAssert.AreEqualIgnoringCase("## Test\n\n|Header1|Header2|Header3|\n|-------|-------|-------|\n", generator.ToString()); }