[MonoDevelop] Monodevelop Nunit Config file
Patrick Barry
drpatrickbarry at gmail.com
Sun Sep 7 17:25:26 EDT 2008
Not sure if I have a problem in my Monodevelop/nunit/mono setup or if I am
incapable of reading basic instructions but my unit tests are unable to read
from the config file
my simple "newtest" project has this test
[Test]
public void TestGetConfig()
{
Assert.AreEqual(ConfigurationManager.AppSettings["test"].ToString(),"testing");
}
config file is in my bin Debug and Release directory
-rw-r--r-- 1 patrickb patrickb 453 2008-09-05 22:31 newtest.config
-rwxr-xr-x 1 patrickb patrickb 4.5K 2008-09-07 22:15 newtest.dll
-rw-r--r-- 1 patrickb patrickb 151 2008-09-07 22:13 newtest.dll.config
-rw-r--r-- 1 patrickb patrickb 663 2008-09-07 22:15 newtest.dll.mdb
my newtest.dll.config and my newtest.config are this:
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
<appSettings>
<add key="test" value="testing" />
</appSettings>
</configuration>
When I run the test in MD ConfigurationManager.AppSettings["test"] is null
Has anybody seen something in my setup that a simple brain transplant would
solve??
thanks in advance
Patrick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080907/747ae5ad/attachment.html
More information about the Monodevelop-list
mailing list