Esempio n. 1
0
        public void TestDeleteFile()
        {
            DeleteExistingFile();

            _fileTracker.TrackFileAccess(_testFileName);
            _fileTracker.DeleteFile(_testFileName);
            _fileTracker.SaveStoredList();

            var properContents = "[]";

            StreamReader reader       = new StreamReader(_mockConfig.Object.StorageFile);
            var          fileContents = reader.ReadToEnd();

            reader.Close();

            Assert.AreEqual(properContents, fileContents);
        }
Esempio n. 2
0
 public void DeleteFile(string fileName)
 {
     File.Delete(GetFullPath(fileName));
     _fileTracker.DeleteFile(fileName);
 }