public void TestCertificatesBigIntegers() { EncryptionUtil publicEcnryptor = new EncryptionUtil(this.publicCertificate); BigInteger publicModulusInteger = publicEcnryptor.BigIntegerForModulus(); BigInteger publicExponentInteger = publicEcnryptor.BigIntegerForExponent(); EncryptionUtil privateEcnryptor = new EncryptionUtil(this.privateCertificate); BigInteger privateModulusInteger = privateEcnryptor.BigIntegerForModulus(); BigInteger privateExponentInteger = privateEcnryptor.BigIntegerForExponent(); Assert.AreEqual(true, publicModulusInteger.Equals(privateModulusInteger)); Assert.AreEqual(true, publicExponentInteger.Equals(privateExponentInteger)); }