Mid Testing

What are the limitations of mocking?

  • Cannot mock non-virtual or sealed methods/classes without special tooling.
  • Over-mocking can make tests fragile and hard to maintain.
  • Complex mocks can hide design issues in the code.
  • Mocks don’t guarantee real-world integration correctness.

More from C# Programming Tutorial

All questions for this course