public void TestFileHasBeenModified() { // FileInfo tp = new FileInfo(testDir + "satisfaction.txt"); // System.IO.File.WriteAllLines(tp.FullName, _satisfactionLyrics); // System.Windows.Forms.MessageBox.Show(File.Exists(tp.FullName).ToString()); Assert.IsTrue(File.Exists(_info.FullName)); Assert.IsFalse(_handler.HasFileBeenModified(_info)); _handler.LoadFile(_info); Assert.IsFalse(_handler.HasFileBeenModified(_info)); var temp = new FileHandler(".txt"); temp.UpdateFileContentInMemory(_info, new[] { "Hello World", "This is a test" }); temp.SaveFile(_info); Assert.IsTrue(_handler.HasFileBeenModified(_info)); }