Exemplo n.º 1
0
        public void FileSystemStoragCleanMethodDeletesAllFiles()
        {
            var storage = new FileSystemStorage(@"c:\temp\netreduce", eraseContents: true);
            storage.Store("a", "aa");
            storage.Store("b", "bb");

            storage.Clean();
            var noOfFiles = storage.ListFiles().Count();

            noOfFiles.ShouldBe(0);
        }