public void react_to_null_argument_properly()
 {
     Assert.Throws <ArgumentNullException>(() =>
                                           PdfApprovals.Verify(null as Stream)
                                           );
     Assert.Throws <ArgumentNullException>(() =>
                                           PdfApprovals.Verify(null as string)
                                           );
 }
 public void will_normalize_different_timezones()
 {
     //Note if you are in Central Time (CTZ) this test isn't very meaningful as thats what the approval is currently tuned to. Sorry.
     PdfApprovals.Verify(PathUtilities.GetAdjacentFile("pdf-created-in-odessa-timezone.pdf"));
 }
 public void react_to_empty_stream_properly()
 {
     Assert.Throws <ArgumentException>(() =>
                                       PdfApprovals.Verify(new MemoryStream(0))
                                       );
 }
 public void react_to_nonexistant_file_properly()
 {
     Assert.Throws <ArgumentException>(() =>
                                       PdfApprovals.Verify(new FileInfo(PathUtilities.GetAdjacentFile("this-file-does-not-exist.pdf")))
                                       );
 }
        public void can_verify_pdfs_created_with_pdfsharp()
        {
            var pdf = createSamplePdf();

            PdfApprovals.Verify(pdf);
        }