Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


BDD with Specflow, Moq and Microsoft Unit Testing framework

AddThis Social Bookmark Button
BDD (Behavior Driven Development) is very popular in these days. I know a lot of companies used BDD in our projects. So I also had some curios about it and I applied for my current project. I used Specflow, Moq and Microsoft Testing framework for working. I did it and found out some things very interested in. In this post I will not focus on what it BDD? What is Mock, stub or how to write a unit testing? Readers can easy find on internet, just googling it and everything will be okay. I just focus on
the some best things I found when I implemented the BDD on my code. I used AAA (Arrange-Act-Assert) and GWT (Given-When-Then) patterns in my code. They are clearly and easily to understand and become standard when you write unit testing and mocking. Now we discuss about a problem when we write unit testing and how to get rid of it. So what's problem? When we write unit testing and try to arrange a lot of things to testing. And the code will be messy and a line of code will become unmanageable, so it is hard to maintain at will. I will give you...(Read whole news on source site)

Home : Blog List : Context is King : BDD with Specflow, Moq and Microsoft Unit Testing framework