How to register output in Silverlight Unit Testing Framework?

I would like to log test output when running a test using the Silverlight Unit Testing Framework. I could get around this by creating some element and writing it, but it seems like a hacked way. Is there a supported framework for recording results during testing?

+5
source share
4 answers

It looks like the base code was in the April2010 toolkit there, but it was not completely completed. The idea is for your TestClass to have a property TestContext TestContext {get; set;}that will be automatically set by the framework. Then in TestMethod callTestContext.WriteLine()

"", , . 10660 . , SL5. http://www.codeplex.com/Download?ProjectName=silverlight&DownloadId=295575

2010 . Silverlight Toolkit Infrastructure.zip, Microsoft.Silverlight.Testing.dll

+2

Silverlight Toolkit ( 2009 ) , . , , .

+1

StatLight, , XML teamcity.

0
source

Try using the Silverlight Unit Test Runner Lighthouse

It works out of the box and provides a standardized xml result file, and also displays a rich log to the console.

0
source

All Articles