This is a migrated thread and some comments may be shown as answers.

Bug: Unit test runner fails when calling "new Uri(string)" due to missing configuration file

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 23 Feb 2011, 04:58 PM
This issue is best described in xUnit bug 9696.

The problem lies in the runner setting up the AppDomain without a config file, which causes the System.Uri constructor to throw an exception. A workaround is to include an App.Config file.

The xUnit standalone runner has been updated to fix this issue here.

1 Answer, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 09 Mar 2011, 06:28 PM
Hi Stephen,

 We've been quite busy with the upcoming release so please excuse us for the late response. Thanks for the detailed explanation of the issue at hand. I looked at how we handle this and it turns out that it's currently working correctly. I did a quick test and creating a new Uri object in xUnit test (or any other framework that JustCode supports) works fine.
 If you experience some problem and you are able to easily reproduce it, could you send over a small sample solution demonstrating it?

 Thank you in advance for the collaboration.

Regards,
Deyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Stephen
Top achievements
Rank 1
Answers by
Deyan Varchev
Telerik team
Share this question
or