Unit tests referencing other project

3 posts, 0 answers
  1. Torsten
    Torsten avatar
    8 posts
    Member since:
    May 2011

    Posted 28 Feb 2012 Link to this post

    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. Torsten
    Torsten avatar
    8 posts
    Member since:
    May 2011

    Posted 28 Feb 2012 Link to this post

    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
  3. DevCraft banner
  4. Blagoev
    Admin
    Blagoev avatar
    49 posts

    Posted 28 Feb 2012 Link to this post

    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 >>
Back to Top