XmlDataTests AddAttributeDouble 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 AddAttributeDouble()
Examples

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