public void Can_view_files_in_Directory() { var pathProvider = GetPathProvider(); var testdirFileNames = new[] { "testdir/a.txt", "testdir/b.txt", "testdir/c.txt", }; testdirFileNames.Each(x => pathProvider.WriteFile(x, "textfile")); var testdir = pathProvider.GetDirectory("testdir"); var filePaths = testdir.Files.Map(x => x.VirtualPath); Assert.That(filePaths, Is.EquivalentTo(testdirFileNames)); var fileNames = testdir.Files.Map(x => x.Name); Assert.That(fileNames, Is.EquivalentTo(testdirFileNames.Map(x => x.SplitOnLast('/').Last()))); pathProvider.DeleteFolder("testdir"); }