SharpDevelop 3.0.0.2970
Problem: I have a base class that is not marked as [TestFixture], but has methods marked with [Test]. I have several derived classes that are marked as a [TestFixture] that derive from this base class. However, even though the base class's test are executed for each derived class, the base class's tests will not highlight in the Unit Testing window unless the base class is marked as a [TestFixture].
Expected Result: The inherited tests on the derived class should highlight appropriately.
Actual Results: The inherited tests continue to be marked as unknown/not run.
Side Note: Even though the inherited tests are not highlighting, the tests defined on the derived class do highlight correctly.
Example:
using System;
using NUnit.Framework;
namespace Example.UnitTests
{
public class BaseTests
{
[Test]
public void ThisShouldHighlightButDoesnt()
{
Console.WriteLine("I should turn green, but I don't.");
}
}
[TestFixture]
public class DerivedTests : BaseTests
{
[Test]
public void ThisActuallyDoesHighlight()
{
Console.WriteLine("This actually does turn green.");
}
}
}