Verifies that a string does not contain some unexpected substring.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void DoesNotContain( string actualValue, string unexpectedSubstring ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub DoesNotContain ( _ actualValue As String, _ unexpectedSubstring As String _ ) |
Parameters
- actualValue
- Type: System..::.String
The actual value.
- unexpectedSubstring
- Type: System..::.String
The unexpected substring.
Remarks
This assertion will fail if the string is null.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
| System..::.ArgumentNullException | Thrown if unexpectedSubstring is null. |
