Exemple #1
0
            public void WhenThereAreDirectories_ThenDeleteAllDirectories()
            {
                DirectoryBuilder.InFileSystem.WithPath(GetAbsolutePath("DirTest1")).Build();
                DirectoryBuilder.InFileSystem.WithPath(GetAbsolutePath("DirTest2")).Build();

                var sut = CreateSut();

                sut.DeleteDirectories();

                AssertDir.HasNoDirectories(sut);
            }
Exemple #2
0
            public void WhenDirectoryHasDirectories_ThenAssertFalse()
            {
                BaseDir.CreateDirectory("Test-HasNoDirectories");

                Assert.Throws <AssertionException>(() => AssertDir.HasNoDirectories(ExistingDirectory));
            }
Exemple #3
0
 public void WhenDirectoryHasNoDirectories_ThenAssertTrue()
 {
     Assert.DoesNotThrow(() => AssertDir.HasNoDirectories(ExistingDirectory));
 }