public void GetMarkdownHeader_WithDepthNinetyNine_ShouldThrowIllegalArgumentException() { string headerPrefix = MarkdownStatics.GetMarkdownHeader(99); }
public void GetMarkdownHeader_WithDepthZero_ShouldReturnHeaderWithOneHashTag() { string headerPrefix = MarkdownStatics.GetMarkdownHeader(0); Assert.AreEqual("#", headerPrefix); }
public void GetMarkdownHeader_WithDepthFive_ShouldReturnHeaderWithSixHashTags() { string headerPrefix = MarkdownStatics.GetMarkdownHeader(5); Assert.AreEqual("######", headerPrefix); }
/// <summary> /// <inheritdoc cref="IMarkdownHeaderBuilder.CreateHeader"/> /// </summary> public string CreateHeader(string headerValue) { return(String.Format(CultureInfo.InvariantCulture, "{0} {1}", MarkdownStatics.GetMarkdownHeader(NestedDepth), headerValue)); }