public void WhenThereAreDirectories_ThenDeleteAllDirectories() { DirectoryBuilder.InFileSystem.WithPath(GetAbsolutePath("DirTest1")).Build(); DirectoryBuilder.InFileSystem.WithPath(GetAbsolutePath("DirTest2")).Build(); var sut = CreateSut(); sut.DeleteDirectories(); AssertDir.HasNoDirectories(sut); }
public void WhenDirectoryHasDirectories_ThenAssertFalse() { BaseDir.CreateDirectory("Test-HasNoDirectories"); Assert.Throws <AssertionException>(() => AssertDir.HasNoDirectories(ExistingDirectory)); }
public void WhenDirectoryHasNoDirectories_ThenAssertTrue() { Assert.DoesNotThrow(() => AssertDir.HasNoDirectories(ExistingDirectory)); }