Thursday, February 13, 2003 | |
The early Nunit review: *** (of four). I like this tool. Nunit makes it simple to set up and execute a test harness without being intrusive on your code base. That's important because I want don't want the hassle of writing a separate executable to house test code. I also don't want to have to rip out pieces of test code or toggle back and forth between different start-up objects (one for testing, one for debugging). Using Nunit is easy. Just write test harness classes and mark them with the [TestFixture] attribute. Within each test class write methods marked with Nunit's [Test] attribute. Nunit provides a variety of assertion methods for validating test post-conditions. Use these to enable Nunit to keep track of successful and failed tests. Compile the code and let Nunit take over. Once pointed to your assembly the Nunit application uses .NET's reflection features to find the test harness classes and methods and execute them. Tips
2:56:27 PM |
I want to take a look at Microsoft's TaskView example, but I am a little busy at the moment. Maybe I can come back to it in a week or two. My top priorities at the moment are: 1. Find a project I can land on; 2. Find projects for my teammates; 3. Try Nunit on my Business Rules Sandbox project. 10:17:29 AM |