Re: More NUnit problems.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Alexander Shirshov (alexander_at_omnitalented.com)
Date: 03/11/05


Date: Fri, 11 Mar 2005 23:52:24 +0700

Frank,

Did you read my reply to your previous post about the same problem?

http://groups.google.co.th/groups?hl=en&lr=&threadm=ejHgZ2YJFHA.2756%40TK2MSFTNGP10.phx.gbl&rnum=1&prev=/groups%3Fq%3D%2522Testing%2Bmy%2BDLL%2Bwith%2BNUnit%2522%26hl%3Den%26btnG%3DGoogle%2BSearch

In short, if you use AppDomain.CurrentDomain.BaseDirectory from your
business.dll to retrieve the path to the accompanying XML you should be OK.

Don't know how to force NUnit not to perform shadow copying and I wouldn't
do that. This is just how NUnit works, embrace it.

HTH,
Alexander

"Frank Rizzo" <none@none.com> wrote in message
news:uE1GIdlJFHA.1308@TK2MSFTNGP15.phx.gbl...
> 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.



Relevant Pages

  • Re: More NUnit problems.
    ... Alexander Shirshov wrote: ... This is just how NUnit works, ... I have a DLL that implements needed functionality. ... >>Business.dll is copied to a temp folder. ...
    (microsoft.public.dotnet.languages.csharp)
  • Unmanaged code debugging too slow
    ... Using VS NET 2003 I have a C# library running unit tests from NUnit. ... code calls a native C++ DLL using PInvoke. ... Using Unmanaged Code Debugging I ...
    (microsoft.public.vc.debugger)
  • Re: OK - Stupid NUnit question
    ... I've met developers that ... like to have them in the same DLL so they don't have to manage the extra ... > Ok I am reading through all this NUnit stuff and using it to unit ... > test .Net applications. ...
    (microsoft.public.dotnet.framework)
  • Re: Nunit..
    ... When I create a project I normally separate most of the logic into different ... DLL files, the main EXE normally calls into these dlls. ... What this allows me to do is to put all my nunit tests into their own dll, ... > conditional compilation. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What do you make of this error message ?
    ... >I would scan your computer for a virus. ... > crazy dll names in the .NET Framework. ... puts them in a uniquely-named assembly in the temp folder. ...
    (microsoft.public.dotnet.framework.aspnet)