Example #1
0
        public void InvalidlyNamedMetadata()
        {
            XmlElement xml    = XmlTestUtilities.CreateBasicElementWithOneAttribute("i", "Include", "i1");
            XmlElement child1 = xml.OwnerDocument.CreateElement("m", XMakeAttributes.defaultXmlNamespace);
            XmlElement child2 = xml.OwnerDocument.CreateElement("Filename", XMakeAttributes.defaultXmlNamespace);

            xml.AppendChild(child1);
            xml.AppendChild(child2);
            BuildItemGroupChildXml child = new BuildItemGroupChildXml(xml, ChildType.BuildItemAdd);
        }
Example #2
0
 public void InvalidExcludeWithoutInclude()
 {
     XmlElement             xml   = XmlTestUtilities.CreateBasicElementWithOneAttribute("i", "Exclude", "i1");
     BuildItemGroupChildXml child = new BuildItemGroupChildXml(xml, ChildType.BuildItemAdd);
 }
Example #3
0
 public void ExpectModifyGetRemove()
 {
     XmlElement             xml   = XmlTestUtilities.CreateBasicElementWithOneAttribute("i", "Remove", "i1");;
     BuildItemGroupChildXml child = new BuildItemGroupChildXml(xml, ChildType.BuildItemModify);
 }
Example #4
0
 public void ExpectRemoveGetAdd()
 {
     XmlElement             xml   = XmlTestUtilities.CreateBasicElementWithOneAttribute("i", "Include", "i1");;
     BuildItemGroupChildXml child = new BuildItemGroupChildXml(xml, ChildType.BuildItemRemove);
 }
Example #5
0
 private static XmlElement CreateBasicRemoveElement()
 {
     return(XmlTestUtilities.CreateBasicElementWithOneAttribute("i", "Remove", "i1"));
 }