Skip to content

Commit

Permalink
Reversed call order since Verifiable returns void.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcockhren authored and kzu committed Mar 25, 2017
1 parent a8ad776 commit f5b2b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Mock.xdoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
to ensure the method in the setup was invoked:
<code>
var mock = new Mock&lt;IWarehouse&gt;();
this.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
this.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Returns(true).Verifiable();
...
// other test code
...
Expand Down

0 comments on commit f5b2b10

Please sign in to comment.