How Are Nullables Different From Mocks?
James Shore
MAY 3, 2023
One of the most common questions I get about Nullables is, “How is that any different than a mock?” The short answer is that Nullables result in sociable, state-based tests, and mocks (and spies) result in solitary, interaction-based tests. This has two major benefits: Nullables catch bugs that mocks don’t. Let’s dig deeper.
Let's personalize your content