public void OpenRegistrySubKey_should_open_specified_registry_sub_key() { // Arrange var envRepos = new EnvironmentRepository(); // Act using (var result = envRepos.OpenRegistrySubKey(Registry.ClassesRoot, @"TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1")) { // Assert Assert.IsNotNull(result); } }