Apr
30
HTML Utilities for Silverlight
Posted In: Silverlight by DotNut
Brian Genisio has just released an early version of HTML Utilties for Silverlight on CodePlex. The primary target for this library is someone who develops software in Silverlight and uses the HTML DOM libraries in Silverlight.
The library wraps all of the HtmlPage classes with wrappers that implement interfaces. For instance, HtmlPage is wrapped around a proxy that implements IHtmlPage. HtmlElement has a proxy wrapper that implements IHtmlElement. By using this approach, you can substitute anything you want in the Html DOM when you test. This may be any test object that implements the interfaces. Some prefer to use Moq, but there are several other approaches to testing now that the system has interfaces to replace.