Beispiel #1
0
 public void TestGetFolderPath6()
 {
     FileEx.GetFolderPaths(@"\\servername\folder1\foo")
     .Should().Equal(new object[]
     {
         @"\\servername\folder1\foo",
         @"\\servername\folder1\",
         @"\\servername\"
     });
 }
Beispiel #2
0
 public void TestGetFolderPaths4()
 {
     FileEx.GetFolderPaths(@"C:\foo\bar\stuff\")
     .Should().Equal(new object[]
     {
         @"C:\foo\bar\stuff\",
         @"C:\foo\bar\",
         @"C:\foo\",
         @"C:\"
     });
 }
Beispiel #3
0
 public void TestGetFolderPaths5()
 {
     FileEx.GetFolderPaths(@"\\servername").Should().Equal(new object[] { @"\\servername" });
 }
Beispiel #4
0
 public void TestGetFolderPaths1()
 {
     FileEx.GetFolderPaths(null).Should().BeEmpty();
     FileEx.GetFolderPaths("").Should().BeEmpty();
 }