Blog LogoBlog Logo

Tag: unit testing

All tags

ReSharper test runner still going after tests complete

I've been writing some tests and I got this message: [RIDER LOGO] Unit Test Runner The process ReSharperTestRunner64:26252 has finished running tests assigned...

— 10 Oct 2020

Ensure Controller actions/classes have authorisation

A couple of years ago I wrote a unit test to ensure that all our controller actions (or Controller classes) had appropriate authorisation set up. This ensures...

— 17 Aug 2018

Using Contracts to discover Liskov Substitution Principle Violations in C#

In his book Agile Principles, Patterns, and Practices in C# , Bob Martin talks about using pre- and post-conditions in Eiffel to detect Liskov Substitution...

— 20 Apr 2014

Unit Testing a Static Class

I've been trying to find a way to unit test a static class. That is, a class that has no instances. The problem has been that at the end of one test the...

— 16 Jun 2007

Test Driven Development By Example

Introduction A lot has been written on the subject of test driven development, and especially on the idea that tests ought to be written first. This is an...

— 28 Mar 2007

An introduction to mock objects

Sometimes when you are unit testing you might get to a point where you say “That's too difficult to unit test so I'm just going to leave it”. This is where...

— 02 Dec 2006