VerifyGet(TProperty) Method

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Specifies a verify for an invocation on a property getter with the given propertyName. The invocation was not call the times specified by times.

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

Syntax

C#
void VerifyGet<TProperty>(
	string propertyName,
	Times times
)

Parameters

propertyName
Type: System..::..String
The name of the property.
times
Type: Moq..::..Times
The number of times a method is allowed to be called.

Type Parameters

TProperty
The type of the property.

See Also