Verifies that an actual value is referentially identical to some expected value.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static void AreSame<T>( T expectedValue, T actualValue ) where T : class |
| Visual Basic (Declaration) |
|---|
Public Shared Sub AreSame(Of T As Class) ( _ expectedValue As T, _ actualValue As T _ ) |
Parameters
- expectedValue
- Type: T
The expected value.
- actualValue
- Type: T
The actual value.
Type Parameters
- T
- The type of value.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
