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

            await htmlToImageConverter.ConvertAsync(html, "converted.png");

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