Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e424f46

Browse files
Empty paths test fix
1 parent 1f28e38 commit e424f46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/UnitTests/IO/FileSystemHelperTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ public void TestFixtureTearDown()
2727
}
2828

2929
[Test]
30-
public void ShouldErrorIfEmpty()
30+
public void ShouldNotErrorIfEmpty()
3131
{
3232
Action item;
3333

3434
item = () => { FileSystemHelpers.FindCommonPath(new List<string>()); };
35-
item.ShouldThrow<InvalidOperationException>();
35+
item.ShouldNotThrow<InvalidOperationException>();
3636

3737
item = () => { FileSystemHelpers.FindCommonPath(new List<string> { null }); };
38-
item.ShouldThrow<InvalidOperationException>();
38+
item.ShouldNotThrow<InvalidOperationException>();
3939

4040
item = () => { FileSystemHelpers.FindCommonPath(new List<string> { "" }); };
41-
item.ShouldThrow<InvalidOperationException>();
41+
item.ShouldNotThrow<InvalidOperationException>();
4242
}
4343

4444
[Test]

0 commit comments

Comments
 (0)