public void Load() { using (RegistryKey key = Registry.CurrentUser.CreateSubKey(settings.Key)) { if (key != null) { key.SetValue("TextFilename", "a"); key.SetValue("AlbumArtFilename", "b"); key.SetValue("TextTemplate", "c"); } } settings.Load(); settings.TextFilename.Should().Be("a"); settings.AlbumArtFilename.Should().Be("b"); settings.TextTemplate.Should().Be("c"); }