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); }
public void DeleteFile(string fileName) { File.Delete(GetFullPath(fileName)); _fileTracker.DeleteFile(fileName); }