Re: Test Driving WPF
Paul Mackintosh <[email protected]>
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
I haven't done much with WPF for a couple of years but you can use MVVM and unit test the subcutaneous layer or you can use an automation tool like White http://www.codeproject.com/Articles/289028/White-An-UI-Automation-tool-for-windows-applicatio Sent from my iPhone > On 4 Nov 2013, at 16:54, Alan Baljeu <[email protected]> wrote: > > I'm kind of new to WPF and trying to TDD an application that uses it. I'm a little frustrated that Microsoft's default program architecture still isn't TDD friendly. It creates an application project and adds a window and an app level resource dictionary, none of which can be tested because a test system requires a DLL it can load. But if I create a new DLL, it loses connection to the base resources because that's in the exe and not available in testing. > > So the architecture seems wrong, and I don't know what's a more ideal way to proceed. Or, is there something I'm missing about testing UI code. > > Alan Baljeu > >