More NUnit problems.

F

Frank Rizzo

Here is the situation. I have a DLL that implements needed
functionality. I'll refer to it as Business.dll. It depends on an XML
(it contains config info) file being in the same directory as the DLL.

I then wrote some unit tests for the Business DLL in another DLL (in
another project). I'll refer to this DLL as Test.dll.

So I run Test.dll through NUnit. For reasons I can't understand, the
Business.dll is copied to a temp folder. Obviously the accompanying XML
file is not copied there, so the test always fails.

How can I force the NUnit to execute the test in place, not in some temp
folder?

Thanks.
 
C

Chris R. Timmons

Here is the situation. I have a DLL that implements needed
functionality. I'll refer to it as Business.dll. It depends on
an XML (it contains config info) file being in the same
directory as the DLL.

I then wrote some unit tests for the Business DLL in another DLL
(in another project). I'll refer to this DLL as Test.dll.

So I run Test.dll through NUnit. For reasons I can't
understand, the Business.dll is copied to a temp folder.
Obviously the accompanying XML file is not copied there, so the
test always fails.

How can I force the NUnit to execute the test in place, not in
some temp folder?

Frank,

You might get an answer in the NUnit help forum on SourceForge:

http://sourceforge.net/forum/forum.php?forum_id=33694
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top