Asserts that two strings are equal according to a particular string comparison mode.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.570.0)

Syntax

C#
public static void AreEqual(
	string expectedValue,
	string actualValue,
	StringComparison comparisonType,
	string messageFormat,
	params Object[] messageArgs
)
Visual Basic (Declaration)
Public Shared Sub AreEqual ( _
	expectedValue As String, _
	actualValue As String, _
	comparisonType As StringComparison, _
	messageFormat As String, _
	ParamArray messageArgs As Object() _
)

Parameters

expectedValue
Type: System..::.String
The expected value.
actualValue
Type: System..::.String
The actual value.
comparisonType
Type: System..::.StringComparison
The string comparison type.
messageFormat
Type: System..::.String
The custom assertion message format, or null if none.
messageArgs
Type: array< System..::.Object >[]()[]
The custom assertion message arguments, or null if none.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.

See Also