Ejemplo n.º 1
0
        public void CheckAddNewFilesToListAddingAFileWithNoExtension()
        {
            var list = new List <string>();

            Update.CreateDirectory("auxiliary");
            var file = File.Create(@"auxiliary\aaa");

            file.Close();
            Update.AddNewFilesToList(Directory.GetCurrentDirectory() + "\\" + @"auxiliary\", list,
                                     Directory.GetCurrentDirectory() + "\\" + @"auxiliary\");
            Assert.IsTrue(list.Contains("aaa"), "File was not found");
            Update.DeleteDirectory("auxiliary");
        }