Browse by Tags

Sorry, but there are no more tags available to filter with.

Syntactic Sugar for Thrown Exception Checking with Generics

Using attributes like [ExpectedException] can obscure intent because they apply to the whole method instead of a specific call you're checking. To make intent totally clear and prevent unexpected bugs, you should wrap just the statement you're expecting Read More...

Functional Programming and Unit Testing

These code samples are from: http://www.ayende.com/Blog/archive/2008/06/06/Scratching-an-itch-NMemcached.aspx public class SystemTime { public static Func<DateTime> Now = () => DateTime.Now; } At first I was wondering what the point of that was. Read More...