Example #1
0
 public void RemoveXmlDoc(IXMLDocument doc)
 {
     // remove the test suite file
     File.Delete(Path.Combine(this.DataFolder, TestSuiteFolder, Path.GetFileName(doc.FullPath)));
     File.Delete(Path.Combine(this.DataFolder, DocumentsFolder, Path.GetFileName(doc.FullPath)));
     XmlDocuments.Remove(doc);
 }
Example #2
0
        public void AddXmlDoc(string path)
        {
            string newFile = Path.Combine(DataFolder, DocumentsFolder, Path.GetFileName(path));

            if (!File.Exists(newFile))
            {
                File.Copy(path, newFile);
            }
            XmlDocuments.Add(new XMLDoc(newFile, this));
        }
Example #3
0
        public void AddXmlDoc(IXMLDocument doc)
        {
            string newFile = Path.Combine(DataFolder, DocumentsFolder, Path.GetFileName(doc.FullPath));

            if (!File.Exists(newFile))
            {
                File.Copy(doc.FullPath, newFile);
            }
            doc.FullPath = newFile;
            XmlDocuments.Add(doc);
        }