What's the best way to do WPF application unit test

  • Thread starter Thread starter Guest
  • Start date Start date
Hello (e-mail address removed),

To hire testers :)

to be seriously the same way as usual winforms
PS: see there how to solve the issue with instantiating WPF controls from
nunit http://www.hedgate.net/articles/2007/01/08/instantiating-a-wpf-control-from-an-nunit-test

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
Hi Jim,

I do some reading and find that the recommended way should be to use
Microsoft UI Antomation as a framework for unit testing for WPF application.

For more information, you may read the following MSDN document:

'Using UI Automation for Automated Testing'
http://msdn2.microsoft.com/en-us/library/aa348551.aspx

You may also read the following article for reference:

'Unit Testing WPF controls with Automation Peers'
http://miketwo.blogspot.com/2007/03/unit-testing-wpf-controls-with.html

Hope this helps.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top