Verifies that a string matches regular expression pattern exactly.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static void FullMatch( string actualValue, string regexPattern, RegexOptions regexOptions ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub FullMatch ( _ actualValue As String, _ regexPattern As String, _ regexOptions As RegexOptions _ ) |
Parameters
- actualValue
- Type: System..::.String
The actual value.
- regexPattern
- Type: System..::.String
The regular expression pattern.
- regexOptions
- Type: System.Text.RegularExpressions..::.RegexOptions
The regular expression options.
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 regexPattern is null. |
