Skip to content

Commit 7655369

Browse files
authored
Refactor System.IO.Path (#91)
1 parent 51b40b7 commit 7655369

File tree

14 files changed

+992
-525
lines changed

14 files changed

+992
-525
lines changed

System.IO.FileSystem.UnitTests/FileUnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class FileUnitTests
99
[Setup]
1010
public void Setup()
1111
{
12-
//Assert.SkipTest("These test will only run on real hardware. Comment out this line if you are testing on real hardware.");
12+
Assert.SkipTest("These test will only run on real hardware. Comment out this line if you are testing on real hardware.");
1313
}
1414

1515
private const string Root = @"I:\";
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using nanoFramework.TestFramework;
2+
3+
namespace System.IO.FileSystem.UnitTests
4+
{
5+
[TestClass]
6+
public class PathInternalUnitTests
7+
{
8+
[TestMethod]
9+
public void IsValidDriveChar_returns_true()
10+
{
11+
var tests = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();
12+
13+
foreach (var test in tests)
14+
{
15+
Assert.IsTrue(PathInternal.IsValidDriveChar(test), $"Case: {test}");
16+
}
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)