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

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

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

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

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