This project is read-only.

In Process Unit Testing

Mar 27, 2008 at 2:19 AM
Is there a way to run a test of a winform from within the same process so that I can setup mocks/stubs of the model objects needed by the window/form/dialog? I'm looking for some way to unit test one window of the application at a time without needing to navigate from login to the window for each unit test. In other words, if I build my application following the MVP pattern can I test each view separately by instantiating a stub/mock presenter (and if needed a stub/mock model)?
Mar 27, 2008 at 6:54 AM
I haven't really tried it. Would be interesting to see how does it work out. There are some threading issues with UIAutomation which I am not clear of.