Posted By

heathbo on 11/01/14


Tagged

Moq c#


Versions (?)

Moq: Verify that a method is not called


 / Published in: C#
 

Verify that the Execute("ping") method is never called.

  1. mock.Verify(foo => foo.Execute("ping"), Times.Never());

Report this snippet  

You need to login to post a comment.