Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 9e20082

Browse files
author
Ian Hays
committed
-Running the FileSystem tests no longer leaves test directories or files in the running directory. fixes #1412
-Modernized the tests for GetFIleSystemEntries and GetFiles, splitting each test case into a standalone method runnable through xunit. Similar versions of these tests now inherit from each other rather than just being copy-pasted like they were previously. Moved most test cases from using hardcoded file names to instead use GetTestFileName() in FileSystemTest.cs. Tested on Linux and Windows. -Changed the names of some files and classes to better follow the naming conventions of the other FileSystem tests.
1 parent 5604615 commit 9e20082

25 files changed

+1186
-2920
lines changed

src/System.IO.FileSystem/tests/Directory/Delete_str_bool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using System.Runtime.CompilerServices;
1111
using Xunit;
1212

13-
public class Directory_Co5663Delete_str_bool
13+
public class Directory_Delete_str_bool
1414
{
1515
public static String s_strDtTmVer = "2000/04/26 20:33";
1616
public static String s_strClassMethod = "Directory.Delete(String,Boolean)";

src/System.IO.FileSystem/tests/Directory/GetCreationTime_str.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Collections.Generic;
1010
using Xunit;
1111

12-
public class Directory_GetCreationTime
12+
public class Directory_GetCreationTime_str
1313
{
1414
public static String s_strDtTmVer = "2009/02/18";
1515
public static String s_strClassMethod = "Directory.GetCreationTime()";

src/System.IO.FileSystem/tests/Directory/GetDirectories_str_str.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using System.Runtime.CompilerServices;
1111
using Xunit;
1212

13-
public class Directory_Co5674GetDirectories_Str_Str
13+
public class Directory_GetDirectories_Str_Str
1414
{
1515
public static String s_strDtTmVer = "2000/04/27 17:00";
1616
public static String s_strClassMethod = "Directory.GetDirectories()";

0 commit comments

Comments
 (0)