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

Unit tests referencing other project

2 Answers 40 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.
Torsten
Top achievements
Rank 1
Torsten asked on 28 Feb 2012, 11:47 AM
Hi,

I have a solution with two projects. The classes to test reside in project A, the unit tests reside in project B.

I use the Nunit with the JustCode testrunner to execute the unit tests.

Problem: when modifying project A, the unit tests stil use the old version of project A. Simply recompiling the solution does not help. When trying to use the debugger in the testrunner, I can not jump into code inside project B, because "The source file is different from when the module was built." - this means the unit tests still use the old version of project A.

What to do to make the testrunner use the new version of project A?

Thank you,

Torsten

2 Answers, 1 is accepted

Sort by
0
Torsten
Top achievements
Rank 1
answered on 28 Feb 2012, 11:52 AM
Problem solved.

It was my fault: in the solution I had the option not to recompile the test project. Now it works as expected.

Regards,

Torsten
0
Blagoev
Telerik team
answered on 28 Feb 2012, 03:47 PM
Hello,

 Glad it worked for you. If something comes up write to us again. 

All the best,
Blagoev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
Torsten
Top achievements
Rank 1
Answers by
Torsten
Top achievements
Rank 1
Blagoev
Telerik team
Share this question
or