public void CheckDeleteFileMethod() { var file = File.Create("aaa.txt"); file.Close(); UpdateLogic.DeleteFile("aaa.txt"); Assert.IsTrue(!File.Exists("aaa.txt"), "File still exists on disk."); }
public void CheckDeleteFileMethodWhenFileDoesNotExist() { UpdateLogic.DeleteFile("aaa.txt"); Assert.IsTrue(!File.Exists("aaa.txt"), "File exists on disk."); }