Tag Archives | Unit Testing

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

Unit Testing ADXStudio CrmMetal Data Context

One thing I’ve been doing a lot of work with recently is ADX Studio CRM Metal for Microsoft Dynamics CRM. If you don’t know already, CRM Metal builds a linq-to-crm type data context model for you, using the Dynamics CRM web services. It’s a really great piece of work, and I can’t imagine extending CRM […]

Continue Reading 0