public void SetUpFixture() { WixXmlAttribute attribute = new WixXmlAttribute("Id", WixXmlAttributeType.Text, new string[] { "a", "b" }, null); propertyDescriptor = new WixXmlAttributePropertyDescriptor(attribute); editorAttribute = WixBindingTestsHelper.GetEditorAttribute(propertyDescriptor.Attributes); }
public void SetUpFixture() { WixXmlAttribute attribute = new WixXmlAttribute("Id", WixXmlAttributeType.FileName); propertyDescriptor = new WixXmlAttributePropertyDescriptor(attribute); editorAttribute = WixBindingTestsHelper.GetEditorAttribute(propertyDescriptor.Attributes); }
public void SetUpFixture() { base.InitFixture(); XmlElement rootDirectoryElement = editor.Document.GetRootDirectory(); XmlElement directoryElement = (XmlElement)rootDirectoryElement.ChildNodes[0]; view.SelectedElement = directoryElement; editor.SelectedElementChanged(); idAttribute = base.GetAttribute(view.Attributes, "Id"); }
public void Uuid() { WixXmlAttribute attribute = new WixXmlAttribute("Id", WixXmlAttributeType.Guid); propertyDescriptor = new WixXmlAttributePropertyDescriptor(attribute); EditorAttribute editorAttribute = WixBindingTestsHelper.GetEditorAttribute(propertyDescriptor.Attributes); Assert.IsNotNull(editorAttribute); Assert.AreEqual(typeof(GuidEditor).AssemblyQualifiedName, editorAttribute.EditorTypeName); }
public void Init() { doc = new WixDocument(); doc.FileName = @"C:\Projects\Setup\Files.wxs"; doc.LoadXml(GetWixXml()); XmlElement productElement = doc.GetProduct(); WixXmlAttributeCollection attributes = wixSchema.GetAttributes(productElement); productIdAttribute = attributes["Id"]; productUpgradeCodeAttribute = attributes["UpgradeCode"]; XmlElement componentElement = (XmlElement)doc.SelectSingleNode("//w:Component", new WixNamespaceManager(doc.NameTable)); attributes = wixSchema.GetAttributes(componentElement); componentGuidAttribute = attributes["Guid"]; componentKeyPathAttribute = attributes["KeyPath"]; XmlElement fileElement = (XmlElement)doc.SelectSingleNode("//w:File", new WixNamespaceManager(doc.NameTable)); attributes = wixSchema.GetAttributes(fileElement); fileSourceAttribute = attributes["Source"]; fileSrcAttribute = attributes["src"]; }
public void Setup() { wixXmlAttribute = new WixXmlAttribute("LongName", "InitialValue", WixXmlAttributeType.Text); pd = new WixXmlAttributePropertyDescriptor(wixXmlAttribute); }