Skip to content

Commit

Permalink
Add a new test to show that #81 is not a bug
Browse files Browse the repository at this point in the history
Issue #81 was added but it cannot be replicated.

Closes #81
  • Loading branch information
baynezy committed Mar 22, 2018
1 parent cf729f5 commit f417907
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/Html2Markdown.Test/MarkdownSchemeConverterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,16 @@ public void Convert_ComplexTest_002()
CheckConversion(html, expected);
}

// Issue #81 https://github.com/baynezy/Html2Markdown/issues/81
[Test]
public void Convert_WhenConvertingContentFromIssue81_ThenShouldNotError() {
const string content = "\n\n<p style=\"margin:0in;font-family:Calibri;font-size:11.0pt;\"><span style=\"font-weight:bold;\">Repro steps amended functionality:</span> Followed\nduplication plan. Location field now only shows location at the booking's site. Testing passed.</p>\n\n<p style=\"margin:0in;font-family:Calibri;font-size:11.0pt;\">&nbsp;</p>\n\n<p style=\"margin:0in;font-family:Calibri;font-size:11.0pt;\"><span style=\"font-weight:bold;\">Exploratory Testing</span>: n/a</p>\n\n<p style=\"margin:0in;font-family:Calibri;font-size:11.0pt;\">&nbsp;</p>\n\n<p style=\"margin:0in;font-family:Calibri;font-size:11.0pt;\"><span style=\"font-weight:bold;\">Areas Affected and Tested: </span>Inpatient Bookings, Bed Move screen<br></p>\n\n";

var converter = new Converter();

Assert.DoesNotThrow(() => converter.Convert(content));
}

#endregion

private static void CheckConversion(string html, string expected, IScheme scheme = null)
Expand Down

0 comments on commit f417907

Please sign in to comment.