private void TestConvert(string path) { using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(path + ".rtf")) using (var expectedReader = new StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream(path + ".html"))) { var actual = Rtf.ToHtml(stream); var expected = expectedReader.ReadToEnd(); ParseRender.AssertEqual(expected, actual); } }
private void TestConvert(RtfSource rtf, string html) { var actual = Rtf.ToHtml(rtf); ParseRender.AssertEqual(html, actual); }