Entering the world of TestDriven.NET
I've been giving serious consideration to writing a limited set of Unit Tests for the ProjectDistributor codebase - in particular, tests against the web services and several web scenatios. Today I started that journey by downloading TestDriven.NET:
Within minutes I had my first unit test running out of VS.NET using the MbUnit Framework
[Test] public void TestSpeak() { Person p = new Person() ; string sentence = "A string" ; string spoken = p.Speak(sentence) ; Assert.AreSame(sentence, spoken) ; }
When you have TestDriven.NET installed you can run the test by simply right clicking within the method body and selecting "Run Test".
Here's some resources that you will need to get up and running with MbUnit:
The next thing that I need to do is to work out how to use TestFu.Data to help me with the setup and teardown of a test database for testing against.