Example #1
0
        public async Task HtmlToPdfConverter_ConvertAsync_HtmlFromText_PdfMatchedWithStandard()
        {
            var html = "<html><body><h1>Hello world!</h1></body></html>";

            await htmlToPdfConverter.ConvertAsync(html, "converted.pdf");

            processServiceMock.Verify(s => s.StartAsync(It.Is <string>(f => f.Contains("pdf.")),
                                                        It.Is <string>(a => a.Contains("converted.pdf"))));
        }