public virtual void testWriteToFileURL() { XMLDoc d = new XMLDoc("doc", null); string dirStr = sm_dirTestDataTemp + @"dir\dir2"; DirectoryInfo dir = new DirectoryInfo(dirStr); if (dir.Exists) { dir.Delete(true); } dir.Create(); // get the directory path string without the relative path stuff (i.e. ..\..\) dirStr = dir.FullName; string fStr1 = dirStr + @"\d .xml"; string fStr2 = dirStr + @"\d%20.xml"; FileInfo f = new FileInfo(fStr1); Assert.IsNotNull(d.write2URL("File:" + fStr1, null)); Assert.IsTrue(f.Exists); Assert.IsNotNull(d.write2URL("File:" + fStr2, null)); Assert.IsTrue(f.Exists); }