Pimp Up Your Unit Test Assertions
In this post I’m going to show you how you can write your unit test assertions to read more fluently and allow you to be more productive. The Plain Jane Unit Test Assertion [Test] public void The_Plain_Jane_Assertion() { const string firstString = "Hello World"; const string secondString = "Hello World"; const int smallNumber = 1; [...]
Ever Thought About Changing How You Name Unit Tests?
In the last couple of months I’ve seen a new convention of how developers are naming their unit test classes. Traditionally the naming convention most developers use is to append the word ‘Tests’ to the class name as shown below. public class UserValidation { } [TestFixture] public class UserValidationTests { } There is absolutely nothing [...]