예제 #1
0
        public void ShouldDeleteDirectory()
        {
            var directory = GetNonExistentTempFileName();

            Directory.CreateDirectory(directory);
            File.Create(Path.Combine(directory, "file.ext")).Close();

            _sut.DeleteDirectoryWithContent(directory);

            Assert.IsFalse(Directory.Exists(directory));
        }