[Mono-list] Unit tests load a different configuration file under mono

Dave Curylo curylod at asme.org
Sat Aug 10 01:25:24 UTC 2013


Thanks for the reply. I understand how to get the test framework to load a
config file, and the first test does just that. It succeeds on both
platforms.  The second test does the same exact thing, only it makes a call
to HttpUtility first, and this seems to trip up the ConfigurationManager,
but only under mono. Under MS .NET, both tests succeed in loading the
configuration and both pass, but under mono, the first test passes and the
second test fails because once a call is made to HttpUtility, the
ConnectionStrings are replaced with the defaults from the ASP.NET stack.
 This seems like very odd behavior.

On Friday, August 9, 2013, Charlie Poole wrote:

> Each test framework has it's own requirements for where a config file must
> be located and how it should be named in order to be loaded and used.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130809/d62bc3f9/attachment.html>


More information about the Mono-list mailing list