XmlDataTests AddAttributeChar Method Delta Engine Documentation

Namespace: DeltaEngine.Content.Xml.Tests
Assembly: DeltaEngine.Content.Xml.Tests (in DeltaEngine.Content.Xml.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void AddAttributeChar()
Examples

[Test]
public void AddAttributeChar()
{
    var root = new XmlData("root");
    root.AddAttribute("attribute", 'a');
    Assert.AreEqual(1, root.Attributes.Count);
    Assert.AreEqual(new XmlAttribute("attribute", 'a'), root.Attributes[0]);
}
See Also