You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- MiniMock allows you to intercept method calls and specify the return value, throw an exception, or return multiple values for a method.
12
12
- Multiple specifications for a method will overwrite each other with the last one taking precedence.
13
-
- Specifying the Call which calls a lambda expression or local function offers the most flexibility and control.
14
-
- A set of quality of life methods are available for common scenarios like returning a fixed values, throwing exceptions, or returning multiple values.
15
-
- Async methods are supported by the common scenarios but also supports specifying the return value or values without the Task.
16
-
- Overloaded methods can be specified by using the call parameter to specify the return value for a specific overload.
17
-
- The "call", "returns", "returnValues" and "throws" parameter-names can be omitted but makes the code more readable.
13
+
- Parameter-names can be omitted but makes the code more readable.
18
14
- Any method that is not explicitly specified will throw a `InvalidOperationException` when called.
0 commit comments