aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-28 21:44:45 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-28 21:44:45 +0100
commit7a8b351c44929e1bac0ad3cd4114dbe60a928648 (patch)
tree77e214ef1d3d4bc35d805e1dce515e15b0c7657c
parent0efd0742d29fc0c71586cefe0de0b59c2a9750e7 (diff)
Add test for relationship reading
-rw-r--r--dotnet/Mammoth.Tests/DocumentConverterTests.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs
index 8d72d40..6ae0fe7 100644
--- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs
+++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs
@@ -99,6 +99,15 @@ namespace Mammoth.Tests {
"<li id=\"doc-42-endnote-3\"><p> Fin. <a href=\"#doc-42-endnote-ref-3\">↑</a></p></li></ol>");
}
+ [Fact]
+ public void RelationshipsAreReadForEachFileContainingBodyXml() {
+ AssertSuccessfulConversion(
+ ConvertToHtml("footnote-hyperlink.docx", mammoth => mammoth.IdPrefix("doc-42-")),
+
+ "<p><sup><a href=\"#doc-42-footnote-1\" id=\"doc-42-footnote-ref-1\">[1]</a></sup></p>" +
+ "<ol><li id=\"doc-42-footnote-1\"><p> <a href=\"http://www.example.com\">Example</a> <a href=\"#doc-42-footnote-ref-1\">↑</a></p></li></ol>");
+ }
+
[Fact]
public void CanExtractRawTextFromFile() {
AssertSuccessfulConversion(