How to write good unit tests: Use simple test values

from blog Just Some Code, | ↗ original
This post is part of my Advent of Code 2022. These days I had to review some code that had one method to merge dictionaries. This is one of the suggestions I gave during that review to write good unit tests. To write good unit tests, write the Arrange part of tests using the simplest test values that exercise the scenario under test. Avoid...