Category Archives: Unit Testing

BDDing with SpecFlow

Unit testing and TDD have become standard development practices for some time. Unit Testing helps build loosely coupled software and it verifies code is functioning correctly. Where it comes up short is verifying if the software being built actually satisfies … Continue reading

Posted in .Net, C#, Unit Testing | Tagged , , , , , | 1 Comment

DevOps the next frontier

TDD and unit testing entered mainstream programming more than a decade ago. They have become so common place now, that I can not imagine creating a new project without writing appropriate unit tests. In my professional work I find I’m … Continue reading

Posted in Unit Testing | Tagged , , | Leave a comment

IEnumerable Guard Clause Best Practice

IEnumerable is C#’s built-in implementation of the iterator design pattern. It’s very powerful. Below is how to iterate through IEnumerable in C#: The Gotcha. IEnumerable defers execution until code actually acts on the elements returned from IEnumerable. This also defers … Continue reading

Posted in C#, Unit Testing | Tagged , , , , | Leave a comment

RAM Disk and SQL Server

I use Continuous integration as part of an Agile development cycle. I constantly struggle to make functional tests run fast enough. Ideally they are run after every build and at the very least they are run every night. I have … Continue reading

Posted in .Net, Unit Testing | Tagged , , , | Leave a comment

mstest Test Categories!

NUnit and xUnit.net have more regular releases than mstest. This is understandable since they are both small, opensource projects whereas mstest is part of Visual Studio which is far from a small project and far far from an opensource one. … Continue reading

Posted in C#, Unit Testing | Tagged , | Leave a comment

Continuous Testing in .Net with NCrunch

Continuous Testing, running unit tests continually, has existed in the Ruby community for some time. NCrunch brings continuous testing to the .Net community! NCrunch runs your unit tests continually while you type reducing the TDD loop from Write Tests->Write Code->Compile->Run … Continue reading

Posted in .Net, C#, NCrunch, Unit Testing | Leave a comment