Exemple #1
0
 public void TestSimpleClean()
 {
     string testDoc = TestUtils.TestFileUtils.MakeRootPathAbsolute(@"Projects\Workshare.API\Workshare.API.Tests\TestDocs\test.pdf");
     using (TempFile tf = new TempFile(testDoc))
     {
         string initialHash = tf.MD5Sum;
         IPdfCleaner c = new PdfCleaner();
         c.CleanFile(tf.FilePath);
         string newHash = tf.MD5Sum;
         Assert.AreNotEqual(initialHash, newHash, "We expected the Cleanion to change the file contents");
     }
 }
Exemple #2
0
 public void TestRelativePath()
 {
     IPdfCleaner c = new PdfCleaner();
     c.CleanFile("test.pdf");
 }