public void Load_LoadConfigWithIlligalCharacters_ReturnsNull() {
			Assume.That(Directory.Exists(nJupiterConfigPath));

			var c = new Config("testconfig", GetConfigXmlDocument(configForConfigFolder));
			var fileConfigLoader  = new FileConfigLoader(c);
			var config = fileConfigLoader.Load("??");

			Assert.IsNull(config);
		}
		public void Load_HasConfigToLoadConfigsWithSuffixTargets_LoadnJupiterDeploymentTargets() {
			Assume.That(File.Exists(nJupiterDevPath + "nJupiter.CSharp.targets"));

			var c = new Config("testconfig", GetConfigXmlDocument(configForDevPath));
			var fileConfigLoader  = new FileConfigLoader(c);
			var config = fileConfigLoader.Load("nJupiter.CSharp");

			Assert.NotNull(config);
		}
		public void Load_LoadSystemConfigFromnjupiterConfigFolder_ReturnSystemInfo() {
			Assume.That(File.Exists(nJupiterConfigPath + "System.config"));

			var c = new Config("testconfig", GetConfigXmlDocument(configForConfigFolder));
			var fileConfigLoader  = new FileConfigLoader(c);
			var config = fileConfigLoader.Load("System");

			Assert.NotNull(config);
		}
Exemple #4
0
        public void Load_LoadConfigWithIlligalCharacters_ReturnsNull()
        {
            Assume.That(Directory.Exists(nJupiterConfigPath));

            var c = new Config("testconfig", GetConfigXmlDocument(configForConfigFolder));
            var fileConfigLoader = new FileConfigLoader(c);
            var config           = fileConfigLoader.Load("??");

            Assert.IsNull(config);
        }
Exemple #5
0
        public void Load_HasConfigToLoadConfigsWithSuffixTargets_LoadnJupiterDeploymentTargets()
        {
            Assume.That(File.Exists(nJupiterDevPath + "nJupiter.CSharp.targets"));

            var c = new Config("testconfig", GetConfigXmlDocument(configForDevPath));
            var fileConfigLoader = new FileConfigLoader(c);
            var config           = fileConfigLoader.Load("nJupiter.CSharp");

            Assert.NotNull(config);
        }
Exemple #6
0
        public void Load_LoadSystemConfigFromnjupiterConfigFolder_ReturnSystemInfo()
        {
            Assume.That(File.Exists(nJupiterConfigPath + "System.config"));

            var c = new Config("testconfig", GetConfigXmlDocument(configForConfigFolder));
            var fileConfigLoader = new FileConfigLoader(c);
            var config           = fileConfigLoader.Load("System");

            Assert.NotNull(config);
        }