public void ShouldReadSingleValueFromRegistrySection()
        {
            var target = new WinRegistryConfigurationProvider(new WinRegistryConfigurationSource(
                                                                  () => Microsoft.Win32.Registry.LocalMachine,
                                                                  "SOFTWARE\\Microsoft\\Shell"));

            target.Load();

            string actual;

            target.TryGet("USB:NotifyOnUsbErrors", out actual);

            actual.Should().Be("1");
        }
        public void TryGet_ExistingKey_ShouldReturn()
        {
            // Arrange
            var target = new WinRegistryConfigurationProvider(new WinRegistryConfigurationSource(
                                                                  () => Microsoft.Win32.Registry.LocalMachine,
                                                                  "SOFTWARE\\Microsoft\\Shell"));

            target.Load();

            // Act
            string actual;

            target.TryGet("USB:NotifyOnUsbErrors", out actual);

            // Assert
            actual.Should().Be("1");
        }