MiniMock

Minimalistic approach to mocking in .NET

View on GitHub

Allowing Skipping Arguments in Mock Setup

Context

In our mocking framework, we have the option to skip arguments when setting up mocks for methods. Although this feature has been found to be rarely used, it can provide significant flexibility and convenience in certain testing scenarios.

Decision

We will allow the skipping of arguments when setting up mocks for methods. This will enable developers to focus on the relevant arguments and simplify the mock setup process when certain arguments are not needed for specific tests.

Consequences

Positive:

Negative:


More ADRs can be found in the docs/ADR directory.