Home » Questions » Computers [ Ask a new question ]

What's the best way to implement BDD/TDD in .NET 2.0? [closed]

What's the best way to implement BDD/TDD in .NET 2.0? [closed]

"Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 8 years ago.

Improve this question

I'm looking to add a testing suite to my application, however I can't move to the newer testing frameworks for .NET 3.5.

Does anyone have a suggestion about good testing frameworks to use?"

Asked by: Guest | Views: 108
Total answers/comments: 4
Guest [Entry]

"We use MbUnit and Rihno Mocks and they prove to work very well together. When doing TDD you will almost certainly need to do some form of dependency injection, while this can be done manually, its worth looking at an IoC container such as Castle Windsor.

It well worth looking at John Paul Bodhood's screen casts to get you started. JPB's Blog"
Guest [Entry]

"NUnit and Rhino suit well and the auto-mocking container might be of interest.

If you're looking at BDD too then NBehave is probably a good choice. If however you just mean the style of BDD that relates to unit testing (xSpec) though you can get away with adding a framework (though things like specunit do add some synctactic sugar), but you might want to look at MSpec is also interesting."
Guest [Entry]

"Check out Rob Conery's screencast on BDD using MSpec. Very impressive http://blog.wekeroad.com/mvc-storefront/kona-3/

edit: I now use this approach: http://10printhello.com/the-one-bdd-framework-to-rule-them/"
Guest [Entry]

For a Mock Object library, I've found the BSD-licensed Rhino.Mocks to be rather pleasing.