public void MSExcel2003XmlFile_GenerateAttribute_KnownUri() { //arrange string comparisonFilename = "data/MSExcel2003XmlFile_Attribute.txt"; string prefix = "c"; string name = "Bob"; string value = "100"; MSExcel2003XmlFile xmlFile = new MSExcel2003XmlFile(); XmlNode node = xmlFile.XmlDocument.CreateElement("A", xmlFile.XmlDocument.NamespaceURI); //act XmlAttribute attribute = xmlFile.GenerateAttribute(prefix, name, value); node.Attributes.Append(attribute); string text = XmlDocumentHelper.XmlToString(node); //assert Assert.AreEqual(Utilities.LoadText(comparisonFilename), text); }