How to Establish Mock Behavior
We have three ways to establish mock method behaviors.
| Name | Description | Scenario |
|---|---|---|
| Returning | Return a value | When the mocked method simply needs to return something |
| Throwing | Throw an exception | When the mocked method needs to throw an exception |
| Answering | Delegate the call to a Func | When the mocked method needs more than simply returning something |