NXUnit Framework Class Library

AssertStrategy.IsEmptyAttrSensitive Field

[This is preliminary documentation and subject to change.]

Will assertions and comparisions care about the empty attribute?

Sample:

string s1 = "<a b=\"\" />";
string s2 = "<a/>";
XMLAssert xa = XMLAssert.CreateInstance();

xa.IsEmptyAttrSensitive = false;
xa.AreEqual(s1, s2);

xa.IsEmptyAttrSensitive = true;
xa.AreEqual(s1, s2);  // Failed!

public bool IsEmptyAttrSensitive;

See Also

AssertStrategy Class | NXUnit.Framework Namespace