UnitTesting Arranging mocks using DSL One of the biggest problems with unit tests is poor readability. Bad naming convention, long methods, hard to understand Arrangement and Assert parts are making unit tests one of the hardest code to
UnitTesting Unit Tests as code specification When asking people what is the purpose of writing unit tests we usually get following answer: “To verify that the code actually does what it is supposed to do.” Among other responses we
Patterns Create test objects using Builder pattern and methods chaining In my previous post “Create test objects using Factory Methods or Object Mother pattern” I described how Factory Method and Object Mother patterns can be used to help with creating object instances. Presented
Patterns Create test objects using Factory Methods or Object Mother pattern One of the nightmares in unit testing is creating instances of tested objects. While our tested object grows, very quickly the code repetition appears in the test fixture. It is very important to