Verifies that an actual value is not referentially identical to some unexpected value.

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

Syntax

C#
public static void AreNotSame<T>(
	T unexpectedValue,
	T actualValue,
	string messageFormat,
	params Object[] messageArgs
)
where T : class
Visual Basic (Declaration)
Public Shared Sub AreNotSame(Of T As Class) ( _
	unexpectedValue As T, _
	actualValue As T, _
	messageFormat As String, _
	ParamArray messageArgs As Object() _
)

Parameters

unexpectedValue
Type: T
The unexpected value.
actualValue
Type: T
The actual value.
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.

Type Parameters

T
The type of value.

Exceptions

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

See Also