();
+ await foreach (var doc in exporter.ExportDocuments(limitPerSource: 100, TestContext.Current.CancellationToken))
+ {
+ if (doc.Description != null && doc.Description.Contains("**All methods and paths for this operation:**"))
+ {
+ documents.Add(doc);
+ }
+ }
+
+ // Assert we found at least one document with the pattern
+ documents.Should().NotBeEmpty("there should be at least one document with operation list");
+
+ foreach (var doc in documents)
+ {
+ // Should not contain HTML
+ doc.Description.Should().NotContain("", "HTML should be converted to markdown");
+ doc.Description.Should().NotContain(" !string.IsNullOrWhiteSpace(l)).TakeLast(5).ToList();
+
+ // At least one of the last few lines should be a Markdown list item
+ var hasMarkdownListAtEnd = lastNonEmptyLines.Any(l => l.StartsWith("- **", InvariantCulture));
+ hasMarkdownListAtEnd.Should().BeTrue(
+ $"markdown list should be at the end of the description. Last lines:\n{string.Join("\n", lastNonEmptyLines)}\n\nFull description:\n{doc.Description}"
+ );
+ }
+ }
+}