Tag Archives: unittest

Automation and Extensibility issue

Today I wrote a wrapper to be in control when unit testing some code that uses System.Random. After completing the task, which is mindless automation, I decided to create a T4 template for it. After completing the few lines in … Continue reading

Posted in Tooling | Tagged , , , | 2 Comments

Behavior Driven Development with SpecFlow

Wouldn’t it be great if analysts, testers and developers spoke the same language? When I develop something great the tester says it is wrong and the analyst says it is not what he meant. With SpecFlow the analyst can write … Continue reading

Posted in Test | Tagged , , , | 1 Comment

ExcludeFromCodeCoverage and Linq

Visual Studio has an attribute called ExcludeFromCodeCoverage to exclude a method from code coverage. But when you use Linq the predicate is included. See sample screenshot below where the code is called with an empty list in the repository. Looking … Continue reading

Posted in Development | Tagged , , | Leave a comment

NDepend – first look

Earlier this year Patrick Smacchia from NDepend contacted me on linked-in. He would offer me a professional license to blog about his product. Now I finally have the time to keep my end of the bargain. Since the features are … Continue reading

Posted in Tooling | Tagged , , , , , , , | Leave a comment

Test async webservice call with a Task

We have a number of services in our project. Our clients include WPF, iOS, Android and Web. To have the best interoperability we communicate over http and expose WSDL for proxy generation. This means we cannot change the contracts or … Continue reading

Posted in Test | Tagged , , , , , | Leave a comment