Exemple #1
0
 public void TestActualRedact()
 {
     string testDoc = TestUtils.TestFileUtils.MakeRootPathAbsolute(@"Projects\Workshare.API\Workshare.API.Tests\TestDocs\test.doc");
     using (TempFile tf = new TempFile(testDoc))
     {
         string initialHash = tf.MD5Sum;
         Redactor r = new Redactor();
         r.RedactFile(tf.FilePath);
         string newHash = tf.MD5Sum;
         Assert.AreNotEqual(initialHash, newHash, "We expected the redaction to change the file contents");
     }
 }
Exemple #2
0
 public void TestRelativePath()
 {
     IRedactor c = new Redactor();
     c.RedactFile("test.doc");
 }