ObjectExtensions..::..RaiseIf Method

Raises if predicate is true.

Namespace:  FastMoq.Extensions
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public static bool RaiseIf(
	Func<bool> predicate,
	string name,
	string path,
	int line,
	string exp
)
Public Shared Function RaiseIf ( _
	predicate As Func(Of Boolean), _
	name As String, _
	path As String, _
	line As Integer, _
	exp As String _
) As Boolean
public:
static bool^ RaiseIf(
	Func<bool^>^ predicate, 
	String^ name, 
	String^ path, 
	int^ line, 
	String^ exp
)

Parameters

predicate
Type: Func<(Of <(<'Boolean>)>)>
The predicate.
name
Type: String
The name.
path
Type: String
The path.
line
Type: Int32
The line.
exp
Type: String
The exp.

Return Value

true if expression is true, false otherwise.

Exceptions


ExceptionCondition
InvalidOperationException