Junior Testing

What is the difference between mocks, stubs, and fakes?

  • Stub: Provides predefined data to the test.
  • Mock: Verifies that certain interactions happened.
  • Fake: Has a working implementation, often simpler than production.

More from C# Programming Tutorial

All questions for this course