Exemple #1
0
 /// <summary>
 /// Creates a new configuration if the config does not exist.
 /// </summary>
 private static void CreateNewConfigIfNotExist()
 {
     if (!LoaderConfigReader.ConfigurationExists())
     {
         LoaderConfigReader.WriteConfiguration(new LoaderConfig());
     }
 }
Exemple #2
0
        /// <summary>
        /// Creates a new configuration if the config does not exist.
        /// </summary>
        private static LoaderConfig CreateNewConfigIfNotExist()
        {
            var configReader = new LoaderConfigReader();
            if (!configReader.ConfigurationExists())
                configReader.WriteConfiguration(new LoaderConfig());

            return configReader.ReadConfiguration();
        }
        /* Before Test */
        public TempLoaderConfigCreator()
        {
            _configReader = new LoaderConfigReader();

            if (_configReader.ConfigurationExists())
            {
                _originalConfig = _configReader.ReadConfiguration();
            }
            else
            {
                _configReader.WriteConfiguration(new LoaderConfig());
            }
        }