Visual Studio Unit Testing of Windows Forms

Posted by GWLlosa on Stack Overflow See other posts from Stack Overflow or by GWLlosa
Published on 2008-12-30T22:06:43Z Indexed on 2010/03/24 23:23 UTC
Read the original article Hit count: 243

We're working on a project here in Visual Studio 2008. We're using the built-in testing suite provided with it (the Microsoft.VisualStudio.TestTools.UnitTesting namespace). It turns out, that much to our chagrin, a great deal of complexity (and therefore errors) have wound up coded into our UI layer. While our unit tests do a decent job of covering our business layer, our UI layer is a constant source of irritation. We'd ideally like to unit-test that, as well. Does anyone know of a good "Microsoft-compatible" way of doing that in visual studio? Will it introduce some sort of conflict to 'mix' unit testing frameworks like nUnitForms with the Microsoft stuff? Are there any obvious bear traps I should be aware of with unit-testing forms?

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about .NET