public void Parse_should_recognize_just_a_hive()
 {
     RegistryPath.Parse("HKCU")
     .Should()
     .BeEquivalentTo(RegistryPath.CreatePath(RegistryHive.CurrentUser), GetEquivalenceOptions);
     RegistryPath.Parse("HKEY_CURRENT_USER")
     .Should()
     .BeEquivalentTo(RegistryPath.CreatePath(RegistryHive.CurrentUser), GetEquivalenceOptions);
 }
 public void Parse_should_recognize_a_single_sub_level_in_the_path()
 {
     RegistryPath.Parse(@"HKLM\SubKey")
     .Should()
     .BeEquivalentTo(RegistryPath.CreatePath(RegistryHive.LocalMachine, "SubKey"), GetEquivalenceOptions);
 }
 public void HasValue_should_be_false_if_there_is_no_value()
 {
     RegistryPath.CreatePath(RegistryHive.Users, "Path").HasValue.Should().BeFalse();
 }
 public void Parse_should_recognize_a_nested_path()
 {
     RegistryPath.Parse(@"HKU\Level1\Level2\Level3")
     .Should()
     .BeEquivalentTo(RegistryPath.CreatePath(RegistryHive.Users, @"Level1\Level2\Level3"), GetEquivalenceOptions);
 }