Re: Current Working Directory
"Charlie Poole" <[email protected]> Tue, 20 May 2008 23:02:41 +0200
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <004101c8babc$d9d45b50$660d0c0a@ferrari> |
Hi Kelly, Is this in a test or in your addin code? If the former, it's a bug, because NUnit guarantees that each test is run with the current directory set to the location of the test assembly. If it's in an addin, there is no guarantee that applies to all addins, but for those that load tests, it should also be the location of the test assembly. Charlie > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Kelly Anderson > Sent: Monday, May 19, 2008 9:56 PM > To: [email protected] > Subject: [nunit-developer] Current Working Directory > > In NUnit 2.5 alpha 2, > > This: > string currentDir = Directory.GetCurrentDirectory(); > > Gives this value... > currentDir = "C:\\Program Files\\NUnit 2.5\\net-2.0" > > I think this is different than it used to work, but it might > just be a setting as well.. > > -Kelly > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > nunit-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nunit-developer > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/