Home All Groups Group Topic Archive Search About

Unit testing in Visual Studio and Data Access Application Block

Author
6 Apr 2006 10:15 AM
FaensenD
The configuration of the Data Access Application Block in the
Enterprise Library is done in the App.config
(=applicationname.exe.config) file.
How can I make sure that

     DatabaseFactory.CreateDatabase("DatabaseName");

does not fail (throw an ConfigurationErrorException) when invoked from
within a Unit Test in Visual Studio 2005 Team System?

Thank you

Daniel Faensen

AddThis Social Bookmark Button