NXUnit Framework Class Library

AssertStrategy.IsDocTypeSensitive Field

[This is preliminary documentation and subject to change.]

Will assertions and comparisions care about the document type?

Sample:

string s1 = "<!DOCTYPE book><a/>";
string s2 = "<!DOCTYPE koob><a/>";
XMLAssert xa = XMLAssert.CreateInstance();

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

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

public bool IsDocTypeSensitive;

See Also

AssertStrategy Class | NXUnit.Framework Namespace