Esempio n. 1
0
        public void GetValue_Which_Not_Exist_Returns_Default()
        {
            string actual = RegistryWrapper.GetValue(RegHive.LocalMachine, notExistingKeyPath, "Key32", "DEFAULT");

            Assert.AreEqual("DEFAULT", actual);
        }
Esempio n. 2
0
        public void GetValue_Which_Not_Exist_Returns_Null()
        {
            string actual = RegistryWrapper.GetValue(RegHive.LocalMachine, notExistingKeyPath, "Key32");

            Assert.AreEqual(null, actual);
        }
Esempio n. 3
0
        public void GetFirstValueNameTest_Returns_Null()
        {
            string actual = RegistryWrapper.GetFirstValueName(RegHive.ClassesRoot, notExistingKeyPath);

            Assert.AreEqual(null, actual);
        }
Esempio n. 4
0
        public void GetValue_Which_Exists_Only_In_32bit_Registry()
        {
            string actual = RegistryWrapper.GetValue(RegHive.LocalMachine, Genev32KeyPath, "ID");

            Assert.AreEqual("32", actual);
        }
Esempio n. 5
0
 /// <summary>
 /// Rydder autologin oplysninger
 /// </summary>
 public static void ClearAutomaticLogin()
 {
     RegistryWrapper.RemoveKey("AutomaticLoginActive");
     RegistryWrapper.RemoveKey("AutomaticLoginEstateAgentId");
     RegistryWrapper.RemoveKey("AutomaticLoginPassword");
 }