Sets an expectation on a property or a non void method with the given
methodOrPropertyName, optionally specifying
arguments for the method call.
Namespace:
Moq.Protected
Assembly:
Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)
Syntax
C# |
---|
IExpect<TResult> Expect<TResult>(
string methodOrPropertyName,
params Object[] args
)
|
Parameters
- methodOrPropertyName
- Type: String
Name of the method or property to be invoke.
- args
- Type: array<
Object
>[]()[]
Optional arguments for the invocation.
Type Parameters
- TResult
- Return type of the method or property.
See Also