public static void Test(string fileName) { try { string pathToData = $"../../../TestInput/{fileName}.html"; string path = Assembly.AssemblyPath + pathToData; string content = File.ReadAllText(path + pathToData); byte[] pdf = PdfGenerator.HtmlTpPdf(content); File.WriteAllBytes($"{fileName}.pdf", pdf); } catch (Exception ex) { Assert.Fail(ex.Message); } }