This repository was archived by the owner on Jun 30, 2023. It is now read-only.
Commit 0c2ff79
committed
Add setup overloads to avoid the mock T argument
This allows simplified lambdas for setup, so that
```
mock.Setup(x => x.TurnOn());
```
becomes
```
mock.Setup(() => mock.TurnOn());
```
A future version could also add `Setup(() ...)` to Syntax for the same effect.1 parent 5aaca90 commit 0c2ff79
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
| |||
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
39 | 64 | | |
40 | 65 | | |
41 | 66 | | |
| |||
0 commit comments