public void CreateDefaultProviderWithNoneDefinedThrows()
        {
            SymmetricCryptoProviderFactory factory  = new SymmetricCryptoProviderFactory(CreateSource(string.Empty));
            ISymmetricCryptoProvider       provider = factory.CreateDefault();

            Assert.IsNotNull(provider);
        }
        public void CreateDefaultProvider()
        {
            SymmetricCryptoProviderFactory factory = new SymmetricCryptoProviderFactory(CreateSource(providerName));
            ISymmetricCryptoProvider provider = factory.CreateDefault();

            Assert.AreEqual(typeof(DpapiSymmetricCryptoProvider), provider.GetType());
        }
        public void CreateDefaultProvider()
        {
            SymmetricCryptoProviderFactory factory  = new SymmetricCryptoProviderFactory(CreateSource(providerName));
            ISymmetricCryptoProvider       provider = factory.CreateDefault();

            Assert.AreEqual(typeof(DpapiSymmetricCryptoProvider), provider.GetType());
        }
 public void CreateDefaultProviderWithNoneDefinedThrows()
 {
     SymmetricCryptoProviderFactory factory = new SymmetricCryptoProviderFactory(CreateSource(string.Empty));
     ISymmetricCryptoProvider provider = factory.CreateDefault();
     Assert.IsNotNull(provider);
 }