Skip to content

D2LTESTS004 failure on an abstract test fixture base #879

Description

@mthjones

When adding an abstract test fixture base class that contains [Test] methods to a test framework project, D2LTESTS004 analyzer errors are reported on the test, despite the class itself not being marked with [TestFixture].

e.g. Putting this in a project marked as a test framework will fail the analyzer.

public abstract class FooBase {
    [Test]
    public void FooTest() {}
}

r? @omsmith

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions