“Nullable” Testing Patterns

A few weeks ago, James Shore has published a novel idea in the area of automated testing. The “Nullable” testing patterns offer a way to incrementally write tests on legacy code and to avoid mocks and design changes for testability, by allowing any class, to implement in addition to the production code a “nullable” implementation that just outputs smart logging events.

Alex looks at this approach, at its goals, at its advantages and disadvantages, and reacts with a conclusion: is it worth looking into it? (Spoiler alert: it is).

The original article is here: https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks

More from the Blog

Leave a Comment

Your email address will not be published. Required fields are marked *

    Your Cart
    Your cart is empty
      Apply Coupon
      Available Coupons
      individualcspo102022 Get 87.00 off
      Unavailable Coupons
      aniscppeurope2022 Get 20.00 off
      Scroll to Top