Indicates that the order of the attributes within the same element must be ignored.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public CustomXmlOptions IgnoreAttributesOrder { get; }
Visual Basic (Declaration)
Public ReadOnly Property IgnoreAttributesOrder As CustomXmlOptions

Examples

CopyC#
[Test]
public void MyXmlTest()
{
    string expected = "<Animal" +
                      "  name='Peary Caribou'" +    // 1st
                      "  genus='Rangifer'" +        // 2nd
                      "  species='tarandus' />" +   // 3rd
    string actual =   "<Animal" +
                      "  genus='Rangifer'" +        // 2nd -> 1st!
                      "  species='tarandus'" +      // 3rd -> 2nd!
                      "  name='Peary Caribou' />" + // 1st -> 3rd!
    Assert.Xml.AreEqual(expected, actual, XmlOptions.Custom.IgnoreAttributesOrder); // Pass!
}

See Also