Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • But this would not test whether correct employee instance is used for the method call. This is half testing. If in your code you are not using employee object passed into method, rather creating a new one testcase would never detect it. Commented Jun 26, 2013 at 13:10
  • @JustCode sorry, didn't get you Commented Jun 26, 2013 at 13:11
  • 1
    Sorry, i overlooked the bottom part of your answer. Its perfect now :-) Commented Jun 26, 2013 at 13:14
  • @JustCode yep, I just decided that you didn't see my edit with examples of two other possible solutions:) Commented Jun 26, 2013 at 13:15