![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](icons/copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() |
Moq |
IProtectedMock<(Of <(<'TMock>)>)>..::..SetupGet<(Of <(<'TProperty>)>)> Method |
IProtectedMock<(Of <(<'TMock>)>)> Interface See Also Send Feedback |
Specifies a setup for an invocation on a property getter with the given
propertyName.
Namespace: Moq.Protected
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)
Syntax
C# |
---|
ISetupGetter<TMock, TProperty> SetupGet<TProperty>( string propertyName ) |
Parameters
- propertyName
- Type: System..::..String
The name of the property.
Type Parameters
- TProperty
- The type of the property.