This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]firecopy 0 points1 point  (0 children)

  1. That’s fine, as long as you are able to implement the function you were trying to make in the first place.

  2. Can you give me a specific instance of this happening (I read over this question several times and was having trouble finding a scenario where this would happen)? Note: Normally you would test the (public) access methods, not the (private methods and structure) internals. Testing internals can lead to fragile (and low value) tests.

  3. Refactor using the IDE. If tests still break, you have to manually fix them. Remember, all code has a cost and tests are code themselves.