VerifySet(TProperty) Method (((T, TProperty)), TProperty)

Moq 2.6

Namespace:  Moq
Assembly:  Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)

Syntax

C#
public virtual void VerifySet<TProperty>(
	Expression<Func<T, TProperty>> expression,
	TProperty value
)

Parameters

expression
Type: Expression<(Of <(Func<(Of <(T, TProperty>)>)>)>)
Expression to verify.
value
Type: TProperty
The value that should have been set on the property.

Type Parameters

TProperty
Type of the property to verify. Typically omitted as it can be inferred from the expression's return type.

Implements

IMock<(Of <(T>)>)..::.VerifySet<(Of <(TProperty>)>)(Expression<(Of <(Func<(Of <(T, TProperty>)>)>)>), TProperty)

See Also