Quantcast
Channel: What's the difference between a mock & stub? - Stack Overflow
Viewing all articles
Browse latest Browse all 43

Answer by nitishagar for What's the difference between a mock & stub?

$
0
0

I like the explanation put out by Roy Osherove in his talk Understanding Mock Objects:

Every class or object created is a fake. It is a mock if you assert against it. Otherwise it is a stub.


Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>