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 9233927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:40:08+00:00 2026-06-18T06:40:08+00:00

I am currently working on a project using C# and Visual Studio 2012. I

  • 0

I am currently working on a project using C# and Visual Studio 2012.

I have a hard time trying to figure out why VS 2012 does not want to run all of my tests.

I have one test projects which runs 1 unit test out of 2. No matter what I’ve tried, it does not want to run the other unit test. It is not detected via the Test Explorer, the “Not Run” test does not include the file.

Here’s a basic framework to put it clearly:

(I have edited the framework to include every part of the solution)

Solution
    MainProject
        ProjectA.Tests (that is the project)
           UnitTestsA.cs (Actually run)
           UnitTestsB.cs (Neven run)

Here’s the code for the second unit test file:

using System; 
using Microsoft.VisualStudio.TestTools.UnitTesting; 
namespace MagicAdmin.Tests 
{      
    [TestClass] 
    public class UnitTest1 
    { 
        [TestMethod] 
        public void TestMethod1() 
        { } 
    } 
} 

How can I solve this? What do I do wrong?

  • 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-06-18T06:40:09+00:00Added an answer on June 18, 2026 at 6:40 am

    In order for Visual Studio to recognize your unit tests, you need to rebuild the unit test project. It is possible that the unit test project is not set to build as part of your current build configuration and thus is not being built when you build the solution.

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

Sidebar

Related Questions

I'm working on Asp.net MVC4 project using Visual Studio 2012. When there's an error
I'm currently working on a project using DSL tools in Visual Studio 2008. Is
We’re currently working on a ASP.NET web project using Visual Studio 2010, and as
I am currently working on an ASP.NET MVC3 project in Visual Studio. I have
I'm currently working on a project using netbeans 6.9 and grails 1.3. I'm trying
I'm currently working on a Visual Studio integration project for VS2010 (a custom highlighter)
We are using Visual Studio 2012 and Team Foundation Server 2010 in our project.
In Visual Studio 2012 I created an MVC 4 project using the Internet template,
Using Visual Studio 2010, MVC project When my form is submitted (currently via javascript,
I'm currently working on an ASP.NET application, and I have downloaded the Visual Studio

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.