Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4028680
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:15:02+00:00 2026-05-20T11:15:02+00:00

I have recently tried using the Silverlight NUnit Project template (the one from Jamie

  • 0

I have recently tried using the Silverlight NUnit Project template (the one from Jamie Cansdale found here) for a Silverlight 4 project that uses WCF RIA 1.0. I seem to be close, but I still cannot get it to work.

Here’s what I’ve done

  1. Create project. 🙂
  2. Change Silverlight version to 4.
  3. Set the WCF RIA Services Link to my WCF RIA project.
  4. Make sure that all of the references (except for mscorlib) are CopyLocal=True.
  5. Try to run the tests.

What happens?

The test fixture setup (which contains only the line “_context = new MyContext();”) dies with this exception:

1 test failed: SetUp : System.TypeInitializationException : The type initializer for ‘MS.Internal.JoltHelper’ threw an exception. —

Has anyone else been able to use the template to test against WCF RIA projects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:15:03+00:00Added an answer on May 20, 2026 at 11:15 am

    The NUnit console doesn’t support silverlight.
    See: http://greenicicleblog.com/2010/04/27/nunit-for-silverlight-updated/
    (Search for “Is there a way to run these in nunit-console?”)

    You can get a Silverlight port of NUinit from google code (from link above) but then you’ve got to use the Silverlight Test runner as described in the first link above. This is OK for manually running the tests, but not useful in a continuous integration scenario.

    The problem is that when the tests run in NUnit console, I believe it runs in the CLR, not the Silverlight runtime.

    We have successfully used NUnit and NCover with some Silverlight code, but then it’s because the code we were testing was compatible with the full .NET CLR.

    This is also a good article that describes how to unit test Silverlight with NUnit:
    http://chris.59north.com/post/Introduction-to-setting-up-automated-unit-testing-in-Silverlight-with-NUnit.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started using generics in java, and in that attempt tried to
Have recently been given a project to complete which uses XML quite extensively.Am looking
I have recently written an application(vb.net) that stores and allows searching for old council
I have recently started using Vim as my text editor and am currently working
We have recently migrated a large, high demand web application to Tomcat 5.5 from
Please excuse my ignorance, I only started coding in Silverlight recently. I tried implementing
I've been working on a home project using VS2008. It involves WCF and Silverlight.
I have recently begun using Scala. I've written a DSL in it which can
I come from Java Background and so used to Debugging using Eclipse but have
I have recently started using Zend Framework. I started developing on my local XAMPP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.