Skip to content

D2LTESTS004 failure on an abstract test fixture base #879

@mthjones

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions