public void ShouldLoad()
        {
            RsaSmallPublicKeySection config = (RsaSmallPublicKeySection)ConfigurationManager.GetSection("RsaSmallPublicKeySection_ShouldLoad");

            Assert.AreEqual(1, config.Value.Modulus.IntValue());
            Assert.AreEqual(2, config.Value.Exponent.IntValue());
        }
        public void PropertiesShouldBeLoadedCorrectly(string SectionName, string expectedModulus, string expectedExponent)
        {
            BigInteger mod = new BigInteger(expectedModulus, 16);
            BigInteger exp = new BigInteger(expectedExponent, 16);
            RsaSmallPublicKeySection config = (RsaSmallPublicKeySection)ConfigurationManager.GetSection(SectionName);

            Assert.IsNotNull(config, "Config is null.");
            Assert.IsNotNull(config.Value, "Value is null.");
            Assert.IsNotNull(config.Value.Modulus, "Modulus is null.");
            Assert.IsNotNull(config.Value.Exponent, "Exponent is null.");
            Assert.AreEqual(mod, config.Value.Modulus, "Modulus not loaded correctly.");
            Assert.AreEqual(exp, config.Value.Exponent, "Exponent not loaded correctly.");
        }