ExpectGet(TProperty) Method

Moq 2.6

Sets an expectation on a property getter with the given propertyName.

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

Syntax

C#
IExpectGetter<TProperty> ExpectGet<TProperty>(
	string propertyName
)

Parameters

propertyName
Type: String
Name of the property.

Type Parameters

TProperty
Type of the property.

See Also