Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D2LTESTS004 failure on an abstract test fixture base #879

Open
mthjones opened this issue Mar 25, 2022 · 0 comments
Open

D2LTESTS004 failure on an abstract test fixture base #879

mthjones opened this issue Mar 25, 2022 · 0 comments

Comments

@mthjones
Copy link
Member

mthjones commented Mar 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant