NXUnit Framework Class Library

XMLAssert Members

XMLAssert overview

Public Static Fields

DEFAULT_STRATEGY The const strategy for default.

Public Static Methods

CreateInstanceOverloaded. Create a new instance of this class.
IsValidOverloaded. Assert the validity of an XML input.
IsValidFileOverloaded. Assert the validity of an XML file.
XpathExistOverloaded. Assert an XPath expression is exist for an XML input.

Public Instance Properties

Counter How many assertions and comparisions did you do? It just like NUnit.Framwork.Assert.Counter.
Note   ATTN: The value of this property will return to ZERO after you got it. It means the getter method are not repeatable.

Sample:
XMLAssert xa = XMLAssert.CreateInstance();
...
Assert.AreEqual(..., xa.Counter);
Assert.AreEqual(0, xa.Counter);
IsCaseSensitive Will assertions and comparisions care about the case of the elements' names and the attributes' names?
Note    This message is copied from AssertStrategy.IsCaseSensitive
Note   Change the property will change the strategy.
IsCommentSensitive Will assertions and comparisions care about the xml comments?
Note    This message is copied from AssertStrategy.IsCommentSensitive
Note   Change the property will change the strategy.
IsDeclarationSensitive Will assertions and comparisions care about the xml declaration?
Note    This message is copied from AssertStrategy.IsDeclarationSensitive
Note   Change the property will change the strategy.
IsDocTypeSensitive Will assertions and comparisions care about the document type?
Note    This message is copied from AssertStrategy.IsDocTypeSensitive
Note   Change the property will change the strategy.
IsEmptyAttrSensitive Will assertions and comparisions care about the empty attribute?
Note    This message is copied from AssertStrategy.IsEmptyAttrSensitive
Note   Change the property will change the strategy.
IsEmptyElementSensitive Will assertions and comparisions care about the empty element?
Note    This message is copied from AssertStrategy.IsEmptyElementSensitive
Note   Change the property will change the strategy.
IsOrderSensitive Will assertions and comparisions care about the order of the elements and attributes?
Note    This message is copied from AssertStrategy.IsOrderSensitive
Note   Change the property will change the strategy.
IsWhitespaceSensitive Will assertions and comparisions care about the whitespace in xml?
Note    This message is copied from AssertStrategy.IsWhitespaceSensitive
Note   Change the property will change the strategy.
Strategy The strategy of this instance.

Public Instance Methods

AreDeclareEqualOverloaded. Assert two XML declaration of the two XML inputs are equal.
AreDocTypeEqualOverloaded. Assert two document types of the two XML inputs are equal.
AreEqualOverloaded. Assert two XML inputs are equal.
AreXpathEqualOverloaded. Assert the evaluation of an XPath expression on an XML input will return the expected value.
CompareOverloaded. Compare two XML inputs and find all differences between them.
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
IsIncludedOverloaded. Assert an XML input is included by another one.
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

XMLAssert Class | NXUnit.Framework Namespace