Tag: unit testing
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...
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...
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...
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...
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...
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...
