Exemplo n.º 1
0
 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);
         }
 }
Exemplo n.º 2
0
        private void TestConvert(RtfSource rtf, string html)
        {
            var actual = Rtf.ToHtml(rtf);

            ParseRender.AssertEqual(html, actual);
        }