Asserts that two XML fragments have the same content.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public static void AreEqual(
	string expectedXml,
	string actualXml
)
Visual Basic (Declaration)
Public Shared Sub AreEqual ( _
	expectedXml As String, _
	actualXml As String _
)

Parameters

expectedXml
Type: System..::.String
The expected XML fragment.
actualXml
Type: System..::.String
The actual XML fragment.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.
System..::.ArgumentNullExceptionThrown if expectedXml or actualXml is null.

See Also