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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:16:44+00:00 2026-05-31T18:16:44+00:00

I use NUnit plugin from ReSharper. I can’t find any way of debugging a

  • 0

I use NUnit plugin from ReSharper. I can’t find any way of debugging a single test. The BUG button always launches all the tests, even when I launch the debug specifically from one test method.

I’m trying to reach a breakpoint with one specific test and I don’t want to reach it with the other tests.

Do you know any way of doing this? Google didn’t help me on this one…

Example of my test code

[Test]
public void IsValidDoer_DoerValid()
{
    var mockRepositoryDoer = new Mock<IDoerRepository>();
    mockRepositoryDoer.Setup(c => c.ActiveDoers).Returns(activeDoers.AsQueryable);

    var doerValidation = new DoerValidation(mockRepositoryDoer.Object);

    Assert.IsTrue(dModel.IncludedDoers.Any());
}

[Test]
public void IsValidDoer_DoerInvalidNoQuota()
{
    var mockRepositoryDoer = new Mock<IDoerRepository>();
    var activeDoers = listDoers.ToList();
    activeDoers.First().QuotaActivity.Clear();
    mockRepositoryDoer.Setup(c => c.ActiveDoers).Returns(activeDoers.AsQueryable);

    var doerValidation = new DoerValidation(mockRepositoryDoer.Object);

    Assert.IsFalse(dModel.IncludedDoers.Any());
}
  • 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-31T18:16:45+00:00Added an answer on May 31, 2026 at 6:16 pm

    Yes Alongside the code is a green and yellow mark just click this and click run it will run that single test. You just left click it once you will get options and depending on what you also have installed from Jetbrains you could launch code coverage from here too.

    You can also choose to append it to an already existing session of other tests or create it in a session all on its own.

    Resharper test

    Clarification:

    Someone downvoted this so I went back and took a look and tested it both for MSTEST and NUnit. it is true it is not desirable to execute the 15 tests if you only wish to debug one. The test was conducted in visual studio 2015 with Resharper 10 and visual studio 2013 with Resharper 8. If you click on the mark in the individual test file it will indeed only run the code once.

    If you run multiple tests and get a test session in Resharper’s runner with three tests it will, on right click, show “debug tests”, however if you only select one it only runs one test and so only hitting the code only once.

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

Sidebar

Related Questions

I am interested in seeing if I can improve the way we use NUnit
Plugin nunit for TeamCity uses its own build, where you can find the source
I am wondering how to use NUnit correctly. First, I created a separate test
Basically I'd like to use the NUnit plugin for TeamCity (the program, not necessarily
Trying to use NUnit to test a method that adds an object to a
Is there a problem accessing the Windows Clipboard from an NUnit test? I have
I've got a unit test in my MonoTouch project that I can't run from
I use NUNIT and mostly Test with ValueSource to do assertions. But i never
I need to use some WPF components in an NUnit unit test. I run
I have multiple NUnit tests, and I would like each test to use a

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.