GetLocalMachineValue() public static method

레지스트리 Local Machine에서 값을 읽어옵니다.
public static GetLocalMachineValue ( string subKey, string name ) : string
subKey string
name string
return string
Example #1
0
        public void Can_GetValue(string subKey, string name, string expectedValue)
        {
            var retrievedValue = RegistryTool.GetLocalMachineValue(subKey, name);

            Assert.AreEqual(expectedValue, retrievedValue);
        }
Example #2
0
        public void Can_GetValueNotExists(string subKey, string name, string expectedValue)
        {
            var retrievedValue = RegistryTool.GetLocalMachineValue(subKey, name);

            Assert.IsNull(retrievedValue);
        }