Пример #1
0
        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.");
        }
Пример #2
0
 public void CheckDeleteFileMethodWhenFileDoesNotExist()
 {
     UpdateLogic.DeleteFile("aaa.txt");
     Assert.IsTrue(!File.Exists("aaa.txt"), "File exists on disk.");
 }