Exemplo n.º 1
0
        public void CanAssignFileInfo()
        {
            const string file         = "context.js";
            string       fullPath     = System.IO.Path.Combine(path, file);
            Modification modification = new Modification();

            parser.AssignFileInfo(modification, fullPath);

            Assert.AreEqual(path, modification.FolderName, "FolderName");
            Assert.AreEqual(file, modification.FileName, "FileName");
        }
        public void CanAssignFileInfo()
        {
            const string path         = @"D:\CCase\ppunjani_view\RefArch\tutorial\wwhdata\common";
            const string file         = "context.js";
            const string fullPath     = path + "\\" + file;
            Modification modification = new Modification();

            parser.AssignFileInfo(modification, fullPath);

            Assert.AreEqual(path, modification.FolderName);
            Assert.AreEqual(file, modification.FileName);
        }