Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > FAQ > Generated code FAQ> Using NUnit for testing purposes
 

Pages: 1
Generated code FAQ
Using NUnit for testing purposes
Page:1/1 

  Print all messages in this thread  
Poster Message
Aglaia
LLBLGen Pro Team



Location:
Scheveningen, The Netherlands
Joined on:
07-Sep-2003 21:16:00
Posted:
534 posts
# Posted on: 21-Aug-2007 13:19:34.  
Question:
I want to unit test the generated code together with my code using NUnit. However it doesn't work, NUnit can't connect to the database, how come?

Solution:
If you want to use NUnit for testing purposes, you have to create an app.dll.config file (where app is the name of the project created for NUnit testing) and place it in the bin\debug directory for the NUnit project. For example if you create a new project called "UnitTest" for NUnit testing, and after adding the appropriate references (see LLBLGen Pro and NUnit documentation) you must copy the App.config file that LLBLGen Pro creates to the directory where the NUnit test dll resides (bin\debug) and rename it to "UnitTest.dll.config".
Aglaia Kuipers, The LLBLGen Pro Team

Join the LLBLGen Pro support team!
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.