예제 #1
0
 public void GetConfigTest()
 {
     string filename = Path.GetFullPath(myConfigTestFile);
     bool fileExists = File.Exists(filename);
     Assert.IsTrue(fileExists);
     bool loaded = configFile.Load(filename);
     Assert.IsTrue(loaded);
     object configuration = configFile.GetConfig("enterpriselibrary.configurationSettings");
     Assert.IsNotNull(configuration);
     ConfigurationSettings configurationSettings = configuration as ConfigurationSettings;
     Assert.IsNotNull(configurationSettings);
 }