Helping you solve those tough coding problems!
Learn some great web development and web design tips and techniques through recipes that clearly define the problem being solved with a working solution.
Popular Tags: cakephp | theory | optimization | javascript-development | asp-net | css | jquery-development | sql | ajax | c

Search:
Follow @endyourif rss Facebook LinkedIn

Specflow Steps are not binding or show up red Specflow Steps are not binding or show up red

Published on Apr 11, 2019 by Jamie Munro

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.

Read more >

Tags: ASP.NET | Testing | specflow

Unit Testing Data Validation with MVC Unit Testing Data Validation with MVC

Published on May 11, 2015 by Jamie Munro

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.

Read more >

Tags: validation | ASP.NET | mvc | Testing | unit testing | ivalidatableobject | validationcontext

Speeding up my unit tests Speeding up my unit tests

Published on Apr 28, 2014 by Jamie Munro

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.

Read more >

Tags: ASP.NET | Theory | fizzbuzz | tdd | Testing | testing