Provides client-side persistence functionality for storing settings.
Inheritance: NotifyPropertyChangedBase
        public void ShouldSaveAndRetrieveLoadedModules()
        {
            var settings = TestHarnessModel.Instance.Settings;

            settings.Clear();
            settings.LoadedModules.Length.ShouldBe(0);

            settings.LoadedModules = new[] 
                                { 
                                    new ModuleSetting("Root.dll", "MyModule.xap"), 
                                    new ModuleSetting("Test.EntryPoint.dll", "Tests.xap"), 
                                    new ModuleSetting("Test.View.dll", "Test.View.xap"), 
                                }; 
            settings.LoadedModules.Length.ShouldBe(3);

            settings.Save();
            settings.LoadedModules.Length.ShouldBe(3);
            settings.LoadedModules[0].AssemblyName.ShouldBe("Root.dll");
            settings.LoadedModules[0].XapFileName.ShouldBe("MyModule");

            var newSettings = new TestHarnessSettings(TestHarnessModel.Instance);
            newSettings.LoadedModules[0].AssemblyName.ShouldBe("Root.dll");
            newSettings.LoadedModules[0].XapFileName.ShouldBe("MyModule");

            settings.LoadedModules = new ModuleSetting[] {};
            settings.LoadedModules.Length.ShouldBe(0);
        }
        private TestHarnessModel()
        {
            // Setup initial conditions.
            Settings = new TestHarnessSettings(this);
            moduleLoader = new ModuleLoader(this);

            // Finish up.
            Refresh();
       }