Learning a new mocking framework what you should learn (1 out 3)
Posted on June 26th, 2012 by alfredo
Over the past six month depending on the workplace that I went I had to unit test. Most of the places where using Dynamic mock frameworks. After learning one or two I came up with a list of what one should learn from a framework to make life easier.
What you need to learn of a mocking framework
· -Return values for interfaces
· How to fire events
· How to mock properties set and get
· How to register params
· How to ignore args
· Work with generics
· Work without parameters
· Register handlers
· Work with out parameters
· Have a mock implement two interfaces
In the next article I will use a moq framework to show examples of each.
Tags: programming
Categories: Programming