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"); } }
public void TestRelativePath() { IPdfCleaner c = new PdfCleaner(); c.CleanFile("test.pdf"); }