Last Updated: February 25, 2016
·
1.015K
· cerebrate

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/