public void LoadSettings_WillLoadFromRegistryBranchOfSpecificCiderWindow_Always()
        {
            var loaderConfig = new Fake_LoaderConfiguration();
            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_AssemblyFullPath] = @"C:\abc\someModule.DLL";

            loaderConfig.LoadSettings();

            Assert.AreEqual(@"HKEY_CURRENT_USER\Software\Cider-x64\1.0.0", loaderConfig.RegKeysLoadedFrom[0].RegPath);
        }
        public void LoadSettings_WillLoadFromRegistryBranchOfSpecificCiderWindow_Always()
        {
            var loaderConfig = new Fake_LoaderConfiguration();

            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_AssemblyFullPath] = @"C:\abc\someModule.DLL";

            loaderConfig.LoadSettings();

            Assert.AreEqual(@"HKEY_CURRENT_USER\Software\Cider-x64\1.0.0", loaderConfig.RegKeysLoadedFrom[0].RegPath);
        }
        public void LoadSettings_WillLoadAllData_Always()
        {
            var loaderConfig = new Fake_LoaderConfiguration();
            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_AssemblyFullPath] = @"C:\abc\someModule.DLL";
            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_Type] = "SomeNamespace.SomeType";
            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_ToAddMergedDictionary] = "pack://*****:*****@"C:\abc\someModule.DLL", loaderConfig.AssemblyOfPreviewedGui);
            Assert.AreEqual("SomeNamespace.SomeType", loaderConfig.TypeOfPreviewedGui);
            Assert.AreEqual("pack://application:,,,/AnyAssembly;component/AnyPath/AnyResourceDictionary.xaml", loaderConfig.ResourceDictionaryToAdd);
            Assert.AreEqual("dependentAssemblyOne.dll", loaderConfig.PreloadedAssemblies[0]);
            Assert.AreEqual("dependentAssemblyTwo.dll", loaderConfig.PreloadedAssemblies[1]);
        }
        public void LoadSettings_WillLoadAllData_Always()
        {
            var loaderConfig = new Fake_LoaderConfiguration();

            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_AssemblyFullPath]      = @"C:\abc\someModule.DLL";
            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_Type]                  = "SomeNamespace.SomeType";
            loaderConfig.ForcedSettingsToLoad[LoaderConfiguration.SettingsName_ToAddMergedDictionary] = "pack://*****:*****@"C:\abc\someModule.DLL", loaderConfig.AssemblyOfPreviewedGui);
            Assert.AreEqual("SomeNamespace.SomeType", loaderConfig.TypeOfPreviewedGui);
            Assert.AreEqual("pack://application:,,,/AnyAssembly;component/AnyPath/AnyResourceDictionary.xaml", loaderConfig.ResourceDictionaryToAdd);
            Assert.AreEqual("dependentAssemblyOne.dll", loaderConfig.PreloadedAssemblies[0]);
            Assert.AreEqual("dependentAssemblyTwo.dll", loaderConfig.PreloadedAssemblies[1]);
        }