public void ValidateSignatureTamperedPackage()
        {
            var certPass          = GetTestCertPassword();
            X509Certificate2 cert = Templatex.LoadCert(@"Locations\TestCert.pfx", certPass);

            var inFile  = @"Locations\SampleContent.txt";
            var outFile = @"Locations\ToExtract.package";

            Templatex.PackAndSign(inFile, outFile, cert, MediaTypeNames.Text.Plain);

            ModifyContent(outFile, "SampleContent.txt");

            Assert.False(Templatex.ValidateSignatures(outFile));

            File.Delete(outFile);
        }
        public void ValidateSignatureFromMsSigned()
        {
            var msSignedFile = @"Locations\MsSigned\Templates.mstx";

            Assert.True(Templatex.ValidateSignatures(msSignedFile));
        }