As best as I can tell, in strict mocking one has to specify what a method on an interface will return if one is to call that method without having an exception thrown. This is the way I've always done things. In loose mocking one however does not have to detail what methods will do on mock objects and instead the methods will just return the default values for the return types (such as null or 0) when they are called without error. Some links I found:
No comments:
Post a Comment