public void DpapiSymmetricCryptoProviderNodeTest()
        {
            DataProtectionScope scope = DataProtectionScope.LocalMachine;
            string name = "some name";

            DpapiSymmetricCryptoProviderNode node = new DpapiSymmetricCryptoProviderNode();
            node.ProtectionScope = scope;
            node.Name = name;

            Assert.AreEqual(scope, node.ProtectionScope);
            Assert.AreEqual(name, node.Name);

            DpapiSymmetricCryptoProviderData data = (DpapiSymmetricCryptoProviderData)node.SymmetricCryptoProviderData;
            Assert.AreEqual(name, data.Name);
            Assert.AreEqual(scope, data.Scope);
        }
 public void PassingNullInDpapiSymmetricCryptoProviderNodeThrows()
 {
     DpapiSymmetricCryptoProviderNode node = new DpapiSymmetricCryptoProviderNode(null);
 }
        public void DpapiSymmetricCryptoProviderNodeName()
        {
            DpapiSymmetricCryptoProviderNode dpapiProviderNode = new DpapiSymmetricCryptoProviderNode();

            Assert.AreEqual("DPAPI Symmetric Cryptography Provider", dpapiProviderNode.Name);
        }