From 0efd0742d29fc0c71586cefe0de0b59c2a9750e7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 28 Apr 2016 21:41:54 +0100 Subject: Add footnote and endnote tests --- dotnet/Mammoth.Tests/DocumentConverterTests.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'dotnet') diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index 2abb033..8d72d40 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -77,6 +77,28 @@ namespace Mammoth.Tests { "

"); } + [Fact] + public void FootnotesAreAppendedToText() { + AssertSuccessfulConversion( + ConvertToHtml("footnotes.docx", mammoth => mammoth.IdPrefix("doc-42-")), + "

Ouch" + + "[1]." + + "[2]

" + + "
  1. A tachyon walks into a bar. ↑

  2. " + + "
  3. Fin. ↑

"); + } + + [Fact] + public void EndNotesAreAppendedToText() { + AssertSuccessfulConversion( + ConvertToHtml("endnotes.docx", mammoth => mammoth.IdPrefix("doc-42-")), + "

Ouch" + + "[1]." + + "[2]

" + + "
  1. A tachyon walks into a bar. ↑

  2. " + + "
  3. Fin. ↑

"); + } + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( -- cgit v1.2.3