NXUnit Framework Class Library

AssertStrategy.IsCaseSensitive Field

[This is preliminary documentation and subject to change.]

Will assertions and comparisions care about the case of the elements' names and the attributes' names?

Sample:

string s1 = "<Test b='c' />";
string s2 = "<teST B='c' />";
XMLAssert xa = XMLAssert.CreateInstance();

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

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

public bool IsCaseSensitive;

See Also

AssertStrategy Class | NXUnit.Framework Namespace