RIP
Tutorial
Tags
Topics
Examples
eBooks
Download moq (PDF)
moq
Getting started with moq
Mocking Behavior
Mocking protected members
Mocking void methods to confirm what they return
No-Argument method mocking
Mocking common interfaces
Mocking properties
Validating call order
moq
Getting started with moq
Mocking Behavior
Mocking protected members
Mocking void methods to confirm what they return
No-Argument method mocking
Mocking common interfaces
Mocking properties
Validating call order
moq
Mocking Behavior
Syntax
mock.Setup(expression).Returns(value) //Whenever called the method in the expression will return value
Parameters
Parameter
Details
expression
Lambda expression that specifies the method invocation.
Mocking Behavior Related Examples
Mocking protected members
Mocking void methods to confirm what they return
No-Argument method mocking
PDF
- Download
moq
for free
Previous
Next