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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:22:39+00:00 2026-06-08T18:22:39+00:00

I have unit tests written using nUnit and tests are structured in a similar

  • 0

I have unit tests written using nUnit and tests are structured in a similar way as in Phil Haack’s post

namespace MyNamespace
{
    [TestFixture]
    public class ClassToTest
    {
        [TestFixture]
        public class MethodToTest
        {
            [Test]
            public void ThrowsArgumentNullException_OnNullIndex()
            {
                ...
            }

            .. more tests for the method ..
        }

        [TestFixture]
        public class AnotherMethodToTest
        {
            [Test]
            public void ThrowsArgumentNullException_OnNullIndex()
            {
                ...
            }

            .. more tests for the method ..
        }
    }
}

My problem is that I get inconclusive for the outer class that is used to group unit tests. I have tried with and without [TestFixture] on the outer and/or inner class, but it is always giving me Inconclusive.

I think the correct behavior should be to display unit test states from the inner class tests. Any ideas?

Inconclusive is appearing for the outer class

Update

One ugly fix seems to be creating a dummy test to the outer class and then put attribute Ignore on it.

[Test, Ignore]
public void DummyTest()
{
    Assert.IsTrue(true);
}

Update 2

Channs & Wayne are correct, outer class is just used for grouping, so changing from class to namespace is the best solution.

  • 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-08T18:22:39+00:00Added an answer on June 8, 2026 at 6:22 pm

    Your outer class only groups the related methods, suggest replacing it by a namespace.

    namespace MyNamespace.ClassToTest
    {
      ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been writing unit tests using NUnit and Moq with my Silverlight code
I'm writing unit tests for a project (written in PHP, using PHPUnit) that have
I have some unit tests I've written to test my Django application. One test
I am writing some unit tests for an extension method I have written on
We have some unit tests running against a SQL server 2000 database using the
I have written an application that unit tests our hardware via a internet browser.
I've got several unit tests written with NUnit that are calling selenium commands. I've
I have an Eclipse project with many unit tests written in Groovy. I can
I have just written a few unit tests and to my horror it failed.
Does anyone have experience with running unit tests written in Ruby from within Maven.

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.