XmlAttributeTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Content.Xml.Tests XmlAttributeTests

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 class XmlAttributeTests

The XmlAttributeTests type exposes the following members.

Constructors

  NameDescription
Public methodXmlAttributeTests
Initializes a new instance of the XmlAttributeTests class
Top
Methods

  NameDescription
Public methodConstructorWithChar
Public methodConstructorWithDouble
Public methodConstructorWithFloat
Public methodConstructorWithObject
Top
Examples

[Test]
public void ConstructorWithObject()
{
    var attribute = new XmlAttribute("name", DayOfWeek.Friday);
    Assert.AreEqual("name", attribute.Name);
    Assert.AreEqual("Friday", attribute.Value);
}
[Test]
public void ConstructorWithFloat()
{
    var attribute = new XmlAttribute("name", 2.1f);
    Assert.AreEqual("name", attribute.Name);
    Assert.AreEqual("2.1", attribute.Value);
}
[Test]
public void ConstructorWithDouble()
{
    var attribute = new XmlAttribute("name", 3.14);
    Assert.AreEqual("name", attribute.Name);
    Assert.AreEqual("3.14", attribute.Value);
}
[Test]
public void ConstructorWithChar()
{
    var attribute = new XmlAttribute("name", 'a');
    Assert.AreEqual("name", attribute.Name);
    Assert.AreEqual("a", attribute.Value);
}
See Also