public static void CreateHeader(MdStringEditor mb, MarkDownType parent) { mb.Header(3, $"{parent.Prefix}"); mb.AppendLine($"__Namespace__: {parent.RepresentType.Namespace}"); mb.AppendLine("* * *"); mb.AppendLine($"__Summary__: {parent.Summary}"); mb.AppendLine(); }
public void MdStringEditor_Header_Should_ReturnValidResult() { _editor.Header(1, "code"); _editor.ToString().Should().Be("# code\r\n"); }