I’ve uploaded a technical talk on unit testing .NET code and some strategies and libraries that can be helpful when working with .NET and .NET Core code.
Tag: Unit Testing
Experimental C# with Scientist .NET
Scientist .NET, in a nutshell, lets you test experimental code safely without exposing errors or inaccuracy to end users.
Future-proofing .NET Tests with NUnit Values Attributes
In this article, I’ll propose a C# solution to a common testing problem with enums using a special NUnit attribute. I’ll also introduce you to a related attribute which can expand your tests.
The Myth of Code Coverage
In this article I’ll discuss what Code Coverage is and its usefulness and limitations. I’ll advocate for a risk-aware approach to software quality and give a few practical examples in C# and F#.
F# Unit Testing – Refining the Squirrel Simulation
Ever wondered about using F# Unit Testing to build a simulation of a squirrel’s world? No? Probably a good sign.
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 […]