public void IsNotEmptyPassesWithNonEmptyDirectoryUsingDirectoryInfo() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsNotEmpty(td.directoryInformation); } }
public void IsNotEmptyPassesWithNonEmptyDirectoryUsingStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory", true)) { DirectoryAssert.IsNotEmpty(td.directoryName); } }
public void IsNotEmptyFailsWithInvalidDirectory() { using (TestDirectory td = new TestDirectory("ParentDirectory", false)) { DirectoryAssert.IsNotEmpty(td.directoryName + "INVALID"); } }
public void IsNotEmptyFailsWithEmptyDirectoryUsingStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory", false)) { DirectoryAssert.IsNotEmpty(td.directoryName); } }
public void IsNotEmptyFailsWithEmptyDirectoryUsingDirectoryInfo() { using (TestDirectory td = new TestDirectory("ParentDirectory", false)) { DirectoryAssert.IsNotEmpty(td.directoryInformation); } }
public void ExportMapsTo_RegisterOneWayMapping_SimpleObjects() { if (Directory.Exists("maps")) { Directory.Delete("maps", true); } _mapper.ExportMapsTo("maps"); _mapper.InitializeMap(); DirectoryAssert.IsNotEmpty("maps"); }
public void IsNotEmptyThrowsUsingNull() { DirectoryAssert.IsNotEmpty((DirectoryInfo)null); }