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

  • Home
  • SEARCH
  • 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 646035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:34:05+00:00 2026-05-13T21:34:05+00:00

In both VSTS 2008 and VS 2010 RC1 when I create a Unit Test

  • 0

In both VSTS 2008 and VS 2010 RC1 when I create a Unit Test (mstest), I am not asked where I would like the project to be placed. It will always turn up at the Solution level. I would like to place the test project inside the folder of the class(es) that are being tested.

I have tried unloading the unit test project and adding it to the class library, but that breaks the coupling with the class.

I am using Visual Studio 2010 Ultimate RC1 with ReSharper 5.0 and Visual Stuido 2008 with RS 4.5.

TIA,
Jim

Amended: I was not at all clear about placing the unit tests. I have a Solution with several Solution Folders. One of these is a common library. I would like to add unit tests for some classes in the library. VS will place the TestProject at the base Solution level. I would prefer

mySolution
mySolution\SolutionFolder
mySolution\SolutionFolder\ClassLibrary
mySolution\SolutionFolder\ClassLibrary\Class1.cs
mySolution\SolutionFolder\ClassLibrary\Class2.cs
mySolution\SolutionFolder\UnitTestForClass1
mySolution\SolutionFolder\UnitTestFOrClass2

Instead, VS will do:

mySolution
mySolution\SolutionFolder
mySolution\SolutionFolder\ClassLibrary
mySolution\SolutionFolder\ClassLibrary\Class1.cs
mySolution\SolutionFolder\ClassLibrary\Class2.cs
mySolution\UnitTestForClass1
mySolution\UnitTestFOrClass2

I hope this is clearer. Thank you.
I do apologize for all the miss-edits I have posted.

  • 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-13T21:34:05+00:00Added an answer on May 13, 2026 at 9:34 pm

    The normal practice is to segregate byb source/source and source/test at the highest level.

    In other words, suppose you have a “solution” with 3 projects, each of which builds a distinct assembly. You might have a source tree like this:

    soln\sourcesrc\proj1
    soln\sourcesrc\proj2
    soln\sourcesrc\proj3
    

    The test code would normally be like this:

    soln\testsrc\proj1
    soln\testsrc\proj2
    soln\testsrc\proj3
    

    This is independent of Visual Studio or mstest. This is just how I have seen it done, pretty much everywhere.

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

Sidebar

Ask A Question

Stats

  • Questions 322k
  • Answers 322k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I don't know anything about the requirements for Heroku -… May 14, 2026 at 12:44 am
  • Editorial Team
    Editorial Team added an answer Not sure if jQuery will help you out much here,… May 14, 2026 at 12:44 am
  • Editorial Team
    Editorial Team added an answer Here's a CodeProject article with code which demonstrates how you… May 14, 2026 at 12:44 am

Related Questions

So, I just downloaded VS 2010 Beta 2, and when I try to build
I am using Visual Studio Team System 2008 and see it has an Icon
I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 +
I am developing on Windows Server 2008 with VSTS 2008 + C# + .Net
I am using VSTS 2008 with both the developer and database editions installed. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.