How to Create Silverlight Control Using TDD (Test Driven Development)
Written by Andrew Ivanov Monday, 19 March 2012
In this article we will learn:
- How to create simple Silverlight expander control
- What could be tested in Silverlight control
- Microsoft Silverlight Unit Test Framework overview
Preparation
To work with Silverlight 4 in Visual Studio 2010, you will need to download and install Silverlight Tools 4
- Microsoft Silverlight Unit Test Framework overview
– Unit tests run right inside the web browser
– Enables testing of rich controls and the entire Silverlight platform
– Rich in-browser logging
– Basic asynchronous testing support
- What can be tested in Silverlight control
– DependencyProperty
– Control contract
– State of child controls inside template
- How to create Silverlight control using TDD (demo)
– ExpanderControl
Demo
Looking for quality Silverlight Hosting? Look no further than Arvixe Web Hosting!
Resources
Tags: control, create, development, driven, help, how to, Silverlight, TDD, test, Unit Test Framework
