Unit Testing WorkItems, Controllers and SmartParts

Topics: CAB & Smart Client Software Factory
Nov 3, 2005 at 8:21 AM
originally posted by: TheJet

Recently we began going through the process of designing how our unit testing suite would function. We've already decided to have a tool responsible for "business acceptance" or "system" testing which functions at a UI level i.e. automating UI interactions. However, we would also like to be able to "unit test" through something like VSTS/NUnit the WorkItems and Controllers as part of our automated development testing. Obviously having things like forms appearing and expecting input from the developer during these tests is not desireable.

Given that WorkItems are responsible for creating the views and orchestrating the "use cases", it seems like we should be able to capture indicators along the lines of "Form 1 was created", "Form 2 was created", etc to test that our workitem is doing what it is supposed to do without actually having the form appear. Has anyone successfully implemented such a system, or does anyone have ideas on how to appropriately test a CAB based application at that level?

TIA!