Let's say I have to test for these features:
- Single event target with a single event
- Multiple events
- Multiple event targets
- Delegated events
Now if I understand unit testing properly, I should create a test for each feature.
However, is there a need to test combined features? E.g.
- Multiple events + multiple targets
- Multiple event targets + delegated events
- Multiple event targets + delegated events + multiple events
Should I implement those combined tests in addition to single feature tests, or should I believe that I am fully covered by the single feature tests?