TDD. When you can move on?
When doing TDD , how to tell "that's enough tests for this class / feature"? I.e. when could you tell that you completed testing all edge cases? With Test Driven Development, you’ll write a test before you write the code it tests. Once you’re written the code and the test passes, then it’s time to write another test. If you follow TDD correctly, you’ve written enough tests once you’re code does all that is required. As for edge cases, let's take an example such as validating a parameter in a method. Before you add the parameter to you code, you create tests which verify the code will handle