VerifySet(T, TProperty) Method (Mock(T), Expression(Func), Boolean, T)

Moq

Collapse imageExpand ImageCopy imageCopyHover image

[Missing <summary> documentation for "M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func`2},System.Boolean,``0)"]

Namespace: Moq
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
[ObsoleteAttribute("Replaced by  VerifySet(Action, Times, string)")]
public static void VerifySet<T, TProperty>(
	this Mock<T> mock,
	Expression<Func> expression,
	bool times,
	T failMessage
)
where T : class

Parameters

mock
Type: Moq..::..Mock<(Of <(<'T>)>)>
expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TResult>)>)>>)>)>
times
Type: System..::..Boolean
failMessage
Type: T

Type Parameters

T
TProperty

See Also