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.

3
  • Can you provide a simple, concrete example in code? Commented Jul 27, 2013 at 19:22
  • @kevinarpe: Really? I mean, the methods even have the same signature and you have a battery of test on the Checker function that throws exceptions. I am sure that you can use the same code to check that the expected Checker exception does indeed get thrown when providing invalid input to your "Layered or Derived Method". Commented Jul 28, 2013 at 8:24
  • Almost two years on, I am in a more lenient mood :) Here's a discussion with a code example: Testing strategy for validation and action methods. C# example, but shouldn't be too difficult to adapt to language of choice. Commented Apr 6, 2015 at 16:53