Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NUNIT is ignoring my tests? Why?

Tags:

nunit

I Have a really simple test class as below.

For some reason my test is being ignored by the GUI and coming up yellow.

I have updated the framework and runner to 2.4.8 as I thought it might have been differences between versions being the problem.

using System;
using NUnit.Framework;

namespace TestRunner
{
    [TestFixture]
    class TestMe
    {

        [Test]
        public void TestBob()
        {
            Assert.IsTrue(true);
        }
   }
}
like image 559
GordyII Avatar asked Feb 19 '09 22:02

GordyII


1 Answers

Your TestMe class needs to be public.

Here is some documentation on the requirements for classes marked with the TestFixture attribute that discusses the conditions under which a class may not be recognized as a test fixture.

like image 155
tvanfosson Avatar answered Sep 23 '22 08:09

tvanfosson