[MonoDevelop] Monodevelop Nunit Config file

"Andrés G. Aragoneses" knocte at gmail.com
Sun Sep 7 19:29:30 EDT 2008


Not sure but I think this has already been reported and filed in 
Bugzilla. Could you try to do a search?

Regards,

	Andrés


Patrick Barry wrote:
> 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.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list