Let's say I've got two classes, each fully tested. There's duplication though, so I refactor the common code into a new class. Should I unit test that new class? If so, how?
Here's the options I can see:
- don't unit test the new class (it's already fully tested by the original tests)
- copy+paste the original tests to the new test class
- move the original tests to the new test class and replace original tests with mocks
- leave original tests alone, but write more fine-grained tests in the new test class