I have a doubt regarding code coverage.
Consider the below scenario,
If I am having the method Sample() with some parameters and I wrote say example 10 test cases for that method.
While running code coverage, if a part of a code (say for example an if condition) is still not covered.
So if I am going to cover that if condition by writing new test case,
- I can able to cover that code by using valid parameters alone(Using any one of an already existing test case).
And my doubt is,
Is that single test case is sufficient for that uncovered code? else I have to cover the code by repeating all the existing 10 test cases of that method?