Issue 293

Change all file and directory tests to use the temporary directory
(Path.GetTempPath) for all directories and files created or tested.
Also, make CF fixes to the tests where necessary.
Because it will fail for a different reason than the one being tested for.

 

From: CharliePoole [mailto:notifications@github.com] 
Sent: Sunday, November 23, 2014 10:38 AM
To: nunit/nunit
Cc: oznetmaster
Subject: Re: [nunit] Issue 293 (#381)

 

In src/NUnitFramework/tests/Assertions/DirectoryAssertTests.cs:

> @@ -37,7 +37,11 @@ public class DirectoryAssertTests
>      {
>          private TestDirectory _goodDir1;
>          private TestDirectory _goodDir2;
> +#if NETCF
> +        private const string BAD_DIRECTORY = @"\I\hope\this\is\garbage";

Why not just use the one without Z: for all builds?

—
Reply to this email directly or view it on GitHub <https://github.com/nunit/nunit/pull/381/files#r20761609> .  <https://github.com/notifications/beacon/AFh64XJBYJSAiMWRCahBcFynsEDqIJW2ks5nQT_1gaJpZM4C_f68.gif>