public void IsEmptyFailsWithNonEmptyDirectoryUsingStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsEmpty(td.directoryName); } }
public void IsEmptyFailsWithNonEmptyDirectoryUsingDirectoryInfo() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsEmpty(td.directoryInformation); } }
public void IsEmptyFailsWithInvalidDirectory() { using (TestDirectory td = new TestDirectory("ParentDirectory", false)) { DirectoryAssert.IsEmpty(td.directoryName + "INVALID"); } }
public void IsEmptyPassesWithEmptyDirectoryUsingStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory", false)) { DirectoryAssert.IsEmpty(td.directoryName); } }
public void IsEmptyPassesWithEmptyDirectoryUsingDirectoryInfo() { using (TestDirectory td = new TestDirectory("ParentDirectory", false)) { DirectoryAssert.IsEmpty(td.directoryInformation); } }
public void IsEmptyThrowsUsingNull() { DirectoryAssert.IsEmpty((DirectoryInfo)null); }