I would advise you not to transfer the tests as if you were doing it, then your tests are tied to the implementation, which means that they are very fragile, so you have to change your tests every time you want to change your implementation. This can quickly become costly when you have a large code base and can become an obstacle when making changes.
Your existing tests should indicate the behavior of your string calculator, and you can reorganize your implementation to anything as long as you maintain the desired behavior.
I tend to think that a unit is a βunit of behavior,β and it may take several classes to implement it.
Things can change if you want to place some classes in a different assembly, after which you probably want to do some new tests next to the new assembly to ensure that the behavior of these components will not change unexpectedly, but in this case, I doubt that you do it.
Things can also change if you start reusing classes in several places, after which you may want separate tests to determine the behavior of classes regardless of their use in places.
source share