From f8ace2ab808441e55ffc95634bc8b88575de78ca Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 26 Apr 2016 23:36:22 +0100 Subject: Fix casing of assertion method --- dotnet/Mammoth.Tests/DocumentConverterTests.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index 5aec793..a551dd7 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -7,28 +7,28 @@ namespace Mammoth.Tests { public class DocumentConverterTests { [Fact] public void DocxContainingOneParagraphIsConvertedToSingleParagraphElement() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("single-paragraph.docx"), "

Walking on imported air

"); } [Fact] public void CanReadFilesWithUtf8Bom() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("utf8-bom.docx"), "

This XML has a byte order mark.

"); } [Fact] public void EmptyParagraphsAreIgnoredByDefault() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("empty.docx"), ""); } [Fact] public void EmptyParagraphsArePreservedIfIgnoreEmptyParagraphsIsFalse() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("empty.docx", converter => converter.PreserveEmptyParagraphs()), "

"); } @@ -37,7 +37,7 @@ namespace Mammoth.Tests { [Fact] public void WordTablesAreConvertedToHtmlTables() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("tables.docx"), "

Above

" + "" + @@ -49,21 +49,21 @@ namespace Mammoth.Tests { [Fact] public void InlineImagesAreIncludedInOutput() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("tiny-picture.docx"), "

"); } [Fact] public void ImagesStoredOutsideOfDocumentAreIncludedInOutput() { - assertSuccessfulConversion( + AssertSuccessfulConversion( ConvertToHtml("external-picture.docx"), "

"); } [Fact] public void CanExtractRawTextFromFile() { - assertSuccessfulConversion( + AssertSuccessfulConversion( new DocumentConverter().ExtractRawText(TestFilePath("simple-list.docx")), "Apple\n\nBanana\n\n"); } @@ -71,13 +71,13 @@ namespace Mammoth.Tests { [Fact] public void CanExtractRawTextFromStream() { using (var file = File.OpenRead(TestFilePath("simple-list.docx"))) { - assertSuccessfulConversion( + AssertSuccessfulConversion( new DocumentConverter().ExtractRawText(file), "Apple\n\nBanana\n\n"); } } - private void assertSuccessfulConversion(IResult result, string expectedValue) { + private void AssertSuccessfulConversion(IResult result, string expectedValue) { if (result.Warnings.Count > 0) { throw new XunitException("Unexpected warnings: " + string.Join(", ", result.Warnings)); } -- cgit v1.2.3