Follow @endyourif rss Facebook LinkedIn

Specflow Steps are not binding or show up red

Published on Apr 11, 2019

I love SpecFlow, in fact I use it everyday and depend heavily on it to test my code. Blogging about my use of SpecFlow has long been on my to-do list, but for some reason I haven't got to it... On the rare occasion though Visual Studio loses my step bindings and they appear red. Luckily there is a simple fix for this.

Unit Testing Data Validation with MVC

Published on May 11, 2015

You've added some data validation and you want to test it out in action. The data validation can be standard data annotations, custom data attributes, or data validation implemented via an IValidatableObject. This article will explore how to leverage the ValidationContext to execute and assert the test results.

Speeding up my unit tests

Published on Apr 28, 2014

I hope this isnít too extremely obvious, but I found that I had to take a step back and re-examine my unit tests to find this simple improvement to speed up my unit tests.

When I wrote about how Iím hooked on test-driven development (TDD), the example in that post was too simple and time savings are not noticed.† However, letís dive in to something a little deeper where we have a full class to test oppose to a single internal function.