There is a solution though. Some quick googling got me to http://www.jeff.wilcox.name/2008/03/silverlight2-unit-testing/ The easy option, Option #2 where you install a new test template ended withwith me saying "but I don't have the Team edition of Visual Studio." I had to use option #1 which involves downloading the Source Code and Unit Tests for Silverlight 2 Beta from Microsoft. Once I did that I ran the exe which unzipped the source into a temp directory. I pulled the three DLL's listed in the article and got started with my first test.
You need to test a failure for your tests or you might find that you have coded a test that always passes no matter what horrible code you wrote. Here's my proof. See all the red?

No comments:
Post a Comment