NXUnit Framework Class Library

AssertStrategy.IsCommentSensitive Field

[This is preliminary documentation and subject to change.]

Will assertions and comparisions care about the xml comments?

Sample:

string s1 = "<r><!-- test string 1 --></r>";
string s2 = "<r/>";
XMLAssert xa = XMLAssert.CreateInstance();

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

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

public bool IsCommentSensitive;

See Also

AssertStrategy Class | NXUnit.Framework Namespace