public async Task Can_generate_image() { var options = new HtmlToImageOptions { ExectuionDirectory = new CustomDirectory(TestContext.CurrentContext.WorkDirectory) }; using var htmlToImage = new HtmlToImage(options, NullLoggerFactory.Instance); var stream = await htmlToImage.CreateImageAsync("<html><body style=\"background-color: red\"></body></html>", 100, ImageFormat.Png); Assert.That(stream.Length, Is.GreaterThan(0)); }