예제 #1
0
 public void IsEmptyFailsWithNonEmptyDirectoryUsingStringPath()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsEmpty(td.directoryName);
     }
 }
예제 #2
0
 public void IsEmptyFailsWithNonEmptyDirectoryUsingDirectoryInfo()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsEmpty(td.directoryInformation);
     }
 }
예제 #3
0
 public void IsEmptyFailsWithInvalidDirectory()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", false))
     {
         DirectoryAssert.IsEmpty(td.directoryName + "INVALID");
     }
 }
예제 #4
0
 public void IsEmptyPassesWithEmptyDirectoryUsingStringPath()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", false))
     {
         DirectoryAssert.IsEmpty(td.directoryName);
     }
 }
예제 #5
0
 public void IsEmptyPassesWithEmptyDirectoryUsingDirectoryInfo()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", false))
     {
         DirectoryAssert.IsEmpty(td.directoryInformation);
     }
 }
예제 #6
0
 public void IsEmptyThrowsUsingNull()
 {
     DirectoryAssert.IsEmpty((DirectoryInfo)null);
 }