NUnit and ActualConnectionString

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 01-Mar-2007 21:37:43   

I have an NUnit project. In the [TestFictureSetUp] I set the ActualConnectionString.

When I run the tests, the ActualConnectionString is fine until it gets into the classes that use the generated code, then it becomes blank somewhere.

Is there anything special I need to do to a NUnit test to get the ActualConnectionString to not go blank? When the assembly is run in the WinForm app, they run fine.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 01-Mar-2007 22:09:45   

Do you have the connection string defined in the right .config file? (unittests.dll.config) ?

Frans Bouma | Lead developer LLBLGen Pro
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 02-Mar-2007 12:42:45   

Found it. Here the answer in case others have the same problem:

My NUnit test uses several assemblies, each with their own LLBL data layer project. I wasn't setting all the project's ActualConnectionString's to a value.