Verifies that the specified method info object is not null, indicating that the
method exists, otherwise raises an assertion failure and describes the expected method signature.
Namespace:
MbUnit.Framework.ContractVerifiersAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
protected static bool MethodExists( MethodInfo method, string methodSignature, bool failsIfNotExists ) |
| Visual Basic (Declaration) |
|---|
Protected Shared Function MethodExists ( _ method As MethodInfo, _ methodSignature As String, _ failsIfNotExists As Boolean _ ) As Boolean |
Parameters
- method
- Type: System.Reflection..::.MethodInfo
The method, or null if missing.
- methodSignature
- Type: System..::.String
The expected method signature for diagnostic output.
- failsIfNotExists
- Type: System..::.Boolean
Thrown a assertion failure exception if the method does not exist.
