コード例 #1
0
        public void CanDeleteDirectoryWithContent()
        {
            TemporaryDirectoryHandler directory = new TemporaryDirectoryHandler().Create();

            string fileName = directory.GetPath("test.txt");

            File.WriteAllText(fileName, String.Empty);

            Assert.True(directory.Delete());
        }
コード例 #2
0
        public void CanDeleteEmptyDirectory()
        {
            TemporaryDirectoryHandler directory = new TemporaryDirectoryHandler().Create();

            Assert.True(directory.Delete());
        }