public void ReadWritePermissionCheckWithRegistryOptionsTestsValid(bool alreadyExists, RegistryOptions options) { string subkey = "TEST_" + options.ToString(); if (alreadyExists) { TestRegistryKey.CreateSubKey(subkey, RegistryKeyPermissionCheck.ReadWriteSubTree, options); } Assert.NotNull(TestRegistryKey.CreateSubKey(subkey, RegistryKeyPermissionCheck.ReadWriteSubTree, options)); }
public void RegistryOptionsTestsValid(bool alreadyExists, RegistryOptions options) { string subkey = "TEST_" + options.ToString(); if (alreadyExists) { TestRegistryKey.CreateSubKey(subkey, true, options); } Assert.NotNull(TestRegistryKey.CreateSubKey(subkey, true, options)); }
public void RegistryOptionsTestsValid(bool alreadyExists, RegistryOptions options) { string subkey = "TEST_" + options.ToString(); if (alreadyExists) { TestRegistryKey.CreateSubKey(subkey, true, options).Dispose(); } using RegistryKey created = TestRegistryKey.CreateSubKey(subkey, true, options); Assert.NotNull(created); }
public void RegistryOptionsTestsValid(bool alreadyExists, RegistryOptions options) { string subkey = "TEST_" + options.ToString(); if (alreadyExists) { TestRegistryKey.CreateSubKey(subkey); } Assert.NotNull(TestRegistryKey.CreateSubKey(subkey)); }