Example #1
0
 public void Unsign_Works()
 {
     using (var signingTool = new PortableExectuableSigningTool())
     {
         Assert.IsTrue(signingTool.IsFileSigned("Unsign_Works/signed/signed.dll"));
         signingTool.UnsignFile("Unsign_Works/signed/signed.dll");
         Assert.IsFalse(signingTool.IsFileSigned("Unsign_Works/signed/signed.dll"));
     }
 }
 public void Unsign_Works()
 {
     using (var signingTool = new PortableExectuableSigningTool(Log))
     {
         string file = Path.Combine(ExecutionDirectory, "Unsign_Works/signed/signed.dll");
         Assert.IsTrue(signingTool.IsFileSigned(file));
         signingTool.UnsignFile(file);
         Assert.IsFalse(signingTool.IsFileSigned(file));
     }
 }