public void AddRootDirectory()
		{
			WixDocument doc = new WixDocument();
			doc.LoadXml(GetWixXml());
			WixDirectoryElement element = doc.AddRootDirectory();
			Assert.IsNotNull(element);
		}
示例#2
0
 /// <summary>
 /// Adds a new directory with the specified name.
 /// </summary>
 WixDirectoryElement AddDirectory(WixDirectoryElementBase parentElement, string name)
 {
     if (parentElement == null)
     {
         parentElement = RootDirectoryElement;
         if (parentElement == null)
         {
             parentElement = document.AddRootDirectory();
         }
     }
     return(parentElement.AddDirectory(name));
 }