Archive | July, 2013

Adding to the PATH variable in batch file or on command line (cmd)

Its really simple, everybody probably knows it, but I’m always forgetting it!! How to add to the path variable for a batch file or on the command line (just of the duration of the session):

There’s hundreds of these little things that I don’t use that often that I forget the syntax of, or […]

Continue Reading 0

Make Unit Testing Easier: Quicker Testing of Exceptions in Constructors

Over recent months I’ve found that I’ve been doing a lot of repetitive unit testing around ensuring that ArgumentNullExceptions are thrown on constructors. To combat this boiler plate code I wrote a quick test helper which goes through each constructor argument, and tests that they throw the exception:

You use this method within your […]

Continue Reading 2