Asserts that two strings are equal according to a particular string comparison mode.
Namespace:
MbUnit.FrameworkAssembly: 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 ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub AreEqual ( _ expectedValue As String, _ actualValue As String, _ comparisonType As StringComparison _ ) |
Parameters
- expectedValue
- Type: System..::.String
The expected value.
- actualValue
- Type: System..::.String
The actual value.
- comparisonType
- Type: System..::.StringComparison
The string comparison type.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
