From: <exo...@us...> - 2003-10-28 13:17:39
|
Update of /cvsroot/ccnet/ccnet/project/core/configuration/test In directory sc8-pr-cvs1:/tmp/cvs-serv8934/project/core/configuration/test Modified Files: ConfigurationLoaderTest.cs Log Message: refactored ccnet.console -- can now force build from console started work reunifying CruiseControl and CruiseManager-- more work needed. application of remoting should really be a decoration -- should not change interface. Index: ConfigurationLoaderTest.cs =================================================================== RCS file: /cvsroot/ccnet/ccnet/project/core/configuration/test/ConfigurationLoaderTest.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ConfigurationLoaderTest.cs 1 Oct 2003 09:07:47 -0000 1.5 --- ConfigurationLoaderTest.cs 28 Oct 2003 13:11:29 -0000 1.6 *************** *** 122,128 **** Assert(projects["foo"] is CustomTestProject); AssertEquals("foo", ((CustomTestProject) projects["foo"]).Name); ! } ! [ReflectorType("customtestproject")] class CustomTestProject // properly should implement IProject { --- 122,128 ---- Assert(projects["foo"] is CustomTestProject); AssertEquals("foo", ((CustomTestProject) projects["foo"]).Name); ! } ! [ReflectorType("customtestproject")] class CustomTestProject // properly should implement IProject { *************** *** 151,154 **** --- 151,167 ---- { changed++; + } + + [Test] + public void ReadAndWriteConfigurationXml() + { + string xml = "<cruisecontrol></cruisecontrol>"; + loader.ConfigFile = TempFileUtil.CreateTempXmlFile(TempFileUtil.CreateTempDir(this), "loadernet.config", xml); + + AssertEquals(xml, loader.ReadXml()); + + string newXml = @"<cruisecontrol foo=""bar""></cruisecontrol>"; + loader.WriteXml(newXml); + AssertEquals(newXml, loader.ReadXml()); } } |