Mariusz Wojcik
  • Home
  • Author
  • GitHub
  • Presentations

TDD

A collection of 4 posts

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

  • Mariusz Wojcik
    Mariusz Wojcik
1 min read
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

  • Mariusz Wojcik
    Mariusz Wojcik
3 min read
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

  • Mariusz Wojcik
    Mariusz Wojcik
2 min read
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

  • Mariusz Wojcik
    Mariusz Wojcik
2 min read
Mariusz Wojcik © 2025
Latest Posts Twitter Ghost