BT

Silverlight 2 Unit Test Framework

| by Al Tenhundfeld Follow 0 Followers on Jun 25, 2008. Estimated reading time: 1 minute |

Jeff Wilcox, primary developer of the Silverlight unit test framework, has posted several entries on writing unit tests for Silverlight 2. In addition to step-by-step instructions, Jeff has provided updated test project templates and repackaged Silverlight.Testing assemblies. The updated test framework allows testing against Microsoft's recently released Beta 2 of its upcoming Silverlight 2.0 rich-client browser plugin. The current Silverlight testing framework is not yet integrated into the Visual Studio test runner, but the framework leverages the same types and attributes used by MS Test and should be familiar to developers who are writing traditional unit tests in Visual Studio. Even if a development team does not practice test-driven development, having programmatic tests exercise UI code is valuable for regression and integration testing.

Jeff sums up the value in his tutorial:

Having unit tests is extremely useful because the more test scenarios you create, the more confidence you'll have when adding features and fixing bugs, especially if you're working with a team of developers. Since the test projects are packaged like any other Silverlight application, there's no special installation process to run the tests. On the Silverlight controls team we've built thousands of these tests!

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT