C#

Common .NET Gotchas

.NET Development and C# in particular have come a long way over the years. I’ve been using it since beta 2 in 2001 and I love it, but there are some common gotchas that are easy to make when you’re just getting started. Throwing Exception If you need to throw […]

Refactoring C# Unit Tests

Unit tests are often treated like second class citizens and not given the same level of polish and refactoring as our production code. As a result, they can wind up brittle, unclear, and hard to maintain. In this article, I’m going to show you a few tricks to keep your […]

Snapshot Testing in JavaScript & .NET

Earlier this year I discovered the fantastic Jest JavaScript unit testing library made by Facebook and commonly associated with React. Jest is built on top of Jasmine, but adds some very nice features, including something called Snapshot testing. While unit tests are typically intended to be precision surgical tools focused […]