public void GetValue_Which_Not_Exist_Returns_Default() { string actual = RegistryWrapper.GetValue(RegHive.LocalMachine, notExistingKeyPath, "Key32", "DEFAULT"); Assert.AreEqual("DEFAULT", actual); }
public void GetValue_Which_Not_Exist_Returns_Null() { string actual = RegistryWrapper.GetValue(RegHive.LocalMachine, notExistingKeyPath, "Key32"); Assert.AreEqual(null, actual); }
public void GetFirstValueNameTest_Returns_Null() { string actual = RegistryWrapper.GetFirstValueName(RegHive.ClassesRoot, notExistingKeyPath); Assert.AreEqual(null, actual); }
public void GetValue_Which_Exists_Only_In_32bit_Registry() { string actual = RegistryWrapper.GetValue(RegHive.LocalMachine, Genev32KeyPath, "ID"); Assert.AreEqual("32", actual); }
/// <summary> /// Rydder autologin oplysninger /// </summary> public static void ClearAutomaticLogin() { RegistryWrapper.RemoveKey("AutomaticLoginActive"); RegistryWrapper.RemoveKey("AutomaticLoginEstateAgentId"); RegistryWrapper.RemoveKey("AutomaticLoginPassword"); }