public void GetFileDateModified_Gets_File_Date_When_Modified() { _pathOriginal = Path.Combine(_assemblyFolder, _fileNameOriginal); if (File.Exists(_pathOriginal)) { cleanupFiles(_pathOriginal); } var myFile = File.Create(_pathOriginal); myFile.Close(); string expectedFileDate = DateTime.Today.ToShortDateString(); Assert.AreEqual(expectedFileDate, FileLibrary.GetFileDateModified(_pathOriginal)); }