public void WalkDown_RelativePath_Exists1() { // arrange var dir = new DirectoryEx(".\\Sample"); // act var results = dir.WalkDown("KSW Doradztwo\\2018").ToArray(); // assert results.Should().HaveCount(2); results[0].Name.Should().Be("KSW Doradztwo"); results[1].Name.Should().Be("2018"); }
public void WalkDown_RelativePath_Exists4() { // arrange var dir = new DirectoryEx(".\\Sample"); // act var results = dir.WalkDown("\\PZ Solutions\\2018").ToArray(); // assert results.Should().HaveCount(3); results[0].Name.Should().Be($"{Path.DirectorySeparatorChar}"); results[1].Name.Should().Be("PZ Solutions"); results[2].Name.Should().Be("2018"); }