public void PaymentVoucherReportGenerator_GeneratePDFForVoucher_ShouldReturnAValidPDF() { var result = new PaymentVoucherReportGenerator().GeneratePDFForVoucher(Voucher); try { new iTextSharp.text.pdf.PdfReader(result); } catch (iTextSharp.text.exceptions.InvalidPdfException) { Assert.Fail("Did not generate valid PDF Document"); } }
public void PaymentVoucherReportGenerator_GeneratePDFForVoucher_ShouldNotReturnNull() { var result = new PaymentVoucherReportGenerator().GeneratePDFForVoucher(Voucher); Assert.IsNotNull(result); }