views:

358

answers:

5

Is there a framework that supports UnitTesting of WPF applications. It should not be to difficult to establishe, because I don't want that writing the tests takes ten times longer than implementing a small feature.

A: 

1) test projects within visual studio can be used to unit test WPF applications, just like they can be used to test windows forms, asp.net and asp.net mvc applications, services, etc etc.
2) Testing takes time. Sometimes it takes ten times longer to test a piece of code than it did to write it. There's no TDD fairy.

Will
A: 

I am not really sure about WPF unit testing, but for Silverlight there is you have SilverUnit and Microsoft Silverlight Unit Test.

Ngu Soon Hui
-1: WPF is .net (Silverlight is an entirely different entitty) - see http://www.cincomsmalltalk.com/userblogs/runarj/blogView?entry=3366522423
Jon Cage
A: 

You can try with NUnit, just like you'll do with any other component.

Optionally you can try MVC.

See CodeProject for MVCtoUnitTestinWPF

Hope it serves.

Sheldon
I'll try it. Thanks
crauscher
+1  A: 

You can try IcuTest. It simplifies WPF unit testing a lot.

Ray
A: 

I heard that White is good - though I haven't tested it myself yet..

stiank81