Test With... Silverlight/CoreCLR

I have just released a new version of TestDriven.NET (2.7 Beta) with support for Silverlight/CoreCLR. Simply right click on the method you would like to execute with the CoreCLR and select 'Test With... Silverlight'. You can use this to execute any public methods (ad-hoc tests). I recommend you use 'Console.WriteLine' for any output messages. 'Trace.WriteLine' is supported by Silverlight's version of 'System.dll' but you would need to use something like DebugView to see the output.

Here is an example method being executed with Silverlight:

As shown above you do have access to the 'System.Windows.Browser.HtmlPage' static methods and properties (from the 'System.Silverlight' assembly). Hopefully people will find this feature useful for spelunking the Silverlight functionality.

I am working on proper unit testing support for Silverlight projects. At the moment none of the unit testing frameworks supported by TestDriven.NET (NUnit, MbUnit, MSTest or Zanebug) are compatible with the CoreCLR. I have had some success getting unit tests running using NUnitLite. You are welcome to contact me if you would like to try an early version of this.

Published Wednesday, May 16, 2007 9:23 AM by Jamie Cansdale

Comments

# re: Test With... Silverlight/CoreCLR

Does this work with Silverlight 2.0 Beta 2?

Wednesday, July 30, 2008 12:08 PM by Don Baechtel

# re: Test With... Silverlight/CoreCLR

The Silverlight Unit Test Framework has the option of using custom log providers. I wonder if testdriven.net could host a service that the log provider will talk to, so you can get full integration with TD.NET, nCover etc.

Tuesday, December 9, 2008 7:52 PM by Morten

# re: Test With... Silverlight/CoreCLR

Cok tesekkuler twitterde bu site hakkinda konusmustuk... twitter acc varmi? selamlar damla

Monday, November 28, 2011 8:51 PM by Arizona Attorney General

# re: Test With... Silverlight/CoreCLR

I cant find a link where i can subscribe to this blog, webmaster how can i follow your blog?

Teddy Tschicke

Tuesday, February 28, 2012 5:13 PM by Home Heating Systems

# re: Test With... Silverlight/CoreCLR

dqmB0R Really informative blog post.Much thanks again. Awesome.

Saturday, March 31, 2012 10:09 AM by oem software online

# re: Test With... Silverlight/CoreCLR

Aw, this was a really nice post. In idea I wish to put in writing like this moreover – taking time and actual effort to make an excellent article… however what can I say… I procrastinate alot and certainly not seem to get something done.

Monday, June 25, 2012 8:26 PM by dell computer support laptops

# re: Test With... Silverlight/CoreCLR

gOmnzs Im thankful for the post.Much thanks again. Fantastic.

Saturday, November 3, 2012 7:54 PM by crork