public void SaveRegistryValueTest()
        {
            var subKey = GetRandomSubKey();

            using (RegistryKey registryKey = Open(false))
            {
                // at first, subKeys are not set
                Assert.IsTrue(IsEmpty(registryKey));
                var value = randomizer.Next();

                // save
                accessor.SaveRegistryValue(subKey, value);
                // get
                Assert.AreEqual(value, (int)registryKey.GetValue(subKey, null));
                Assert.IsFalse(IsEmpty(registryKey));
            }
        }
 public void CleanUpRegistry()
 {
     BuffettCodeRegistryConfig.SupportedValueNames.ToList().ForEach(
         name => accessor.SaveRegistryValue(name, null));
 }