[This is preliminary documentation and subject to change.]
XMLAssert is the facade of NXUnit Framework.
You can access all the assertions and comparisions of NXUnit Framework , set up the properties which can work on the results of the assertions and comparisions, get the count of assertions and comparisions you have done, and create your own XMLAssert instance with the special strategy, just through this class.
Features of XMLAssert:
* Assert two XML inputs are equal.
* Compare two XML inputs and find all differences between them.
* Assert two XML declaration of the two XML inputs are equal.
* Assert two document types of the two XML inputs are equal.
* Assert the validity of an XML input.
* Assert the evaluation of an XPath expression on an XML input will return the expected value.
* Assert an XPath expression is exist for an XML input.
* Assert an XML input is included by another one.
Method Group:
In fact, every assertion or comparision in this class has 7 method signatures, they are about:
* string parameters
* string parameters with message
* TextReader parameters
* TextReader parameters with message
* Stream parameters
* Stream parameters with message
* XMLInput parameters with message
And the former 6 ones actually turn their parameters to XMLInput(s) and invoke the last one.
Note This class may not be instantiated, or further subclassed.
For a list of all members of this type, see XMLAssert Members.
System.Object
NXUnit.Framework.XMLAssert
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
See NXUnit.Framework.Tests.FunctionTest in file {nxunit_home}/test/FunctionTest.cs
See NXUnit.Framework.Tests.FailureTest in file {nxunit_home}/test/FailureTest.cs
See NXUnit.Framework.Tests.IncludeTest in file {nxunit_home}/test/IncludeTest.cs
See NXUnit.Framework.Tests.SignatureTest in file {nxunit_home}/test/SignatureTest.cs
See NXUnit.Framework.Tests.XpathTest in file {nxunit_home}/test/XpathTest.cs
Namespace: NXUnit.Framework
Assembly: NXUnit.Framework (in NXUnit.Framework.dll)
XMLAssert Members | NXUnit.Framework Namespace