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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:01:17+00:00 2026-06-18T05:01:17+00:00

How to Make a test method not runnable in Visual Studio Unit Test ?

  • 0

How to Make a test method not runnable in Visual Studio Unit Test ?
using visual studio 2010 with .NET 4.0.

Suppose I have 10 test methods out of which, 1 test method is not working due to external dependencies. If I want to run all 10, then I will get error in one test.

One solution is: Don’t run the test. But I need to know, is there any Attributes or anything like that, which simply bypasses the test and it will not be run.

I tried with [WorkItem(1234)] Attribute, but still the test is running.

Any help is greatly appreciated.

  • 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-18T05:01:18+00:00Added an answer on June 18, 2026 at 5:01 am

    Yes, you can add the Ignore attribute to the test you want to skip:

    [TestMethod, Ignore]
    public void ThisTestWontRun()
    {
        // Test code here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a class in Ruby: class Test def method(arg1, arg2) return arg1+arg2
I have a .net test class. In the Initialize method, I create a windsor
How can I make google test fail if google mocked method is called more
For example I have make test # do other stuff 'make test' runs some
So I have a test case that I want to make into a thread.
Suppose, I have a junit test class: class MyComponentTest { private void test(File file)
When using the following jquery call I receive a http 405 method not allowed
I'm using VSTS 2K8 and I've set up a Unit Test Project. In it,
I have not used Junit before and have not done unit testing automatically. Scenario:
Wanted to Unit Test a method in the following Class public class DeviceAuthorisationService :

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.