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); }