Use PostSharp to make methods selectively unreliable for testing
Today’s problem has been the ever-vexing problem of external services that are too damn reliable, thus leaving one wondering how, exactly, one is supposed to test one’s error-handling code in a vaguely convenient manner if the blasted things always work.
Well, you can do it like this:
http://randomactsofcoding.wordpress.com/2013/09/03/call-me-maybe/
Written by Alistair Young
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#