Example #1
0
        public void Unsign_Works()
        {
            var signingTool = new AndroidApkSigningTool();

            Assert.IsTrue(signingTool.IsFileSigned("Unsign_Works/signed/signed.jar"));
            signingTool.UnsignFile("Unsign_Works/signed/signed.jar");
            Assert.IsFalse(signingTool.IsFileSigned("Unsign_Works/signed/signed.jar"));
        }
        public void IsFileSigned_SignedFile_UntrustedCertificate_ReturnsTrue()
        {
            var signingTool = new AndroidApkSigningTool();

            Assert.IsTrue(File.Exists("TestFiles/signed/signed.jar"));
            Assert.IsTrue(signingTool.IsFileSigned("TestFiles/signed/signed.jar"));
        }
 public void IsFileSigned_SignedFile_TrustedCertificate_ReturnsTrue()
 {
     using (
         new CertificateStoreHelper("Certificates/SigningServer.Test.pfx", CertificatePassword, StoreName.Root,
                                    StoreLocation.LocalMachine))
     {
         var signingTool = new AndroidApkSigningTool();
         Assert.IsTrue(File.Exists("TestFiles/signed/signed.jar"));
         Assert.IsTrue(signingTool.IsFileSigned("TestFiles/signed/signed.jar"));
     }
 }