Inheritance Hierarchy
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
The XmlAttributeTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XmlAttributeTests | Initializes a new instance of the XmlAttributeTests class |
Methods
Name | Description | |
---|---|---|
ConstructorWithChar | ||
ConstructorWithDouble | ||
ConstructorWithFloat | ||
ConstructorWithObject |
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