Skip to content

Theories in nested Testfixtures #3856

Description

@Crown0815

To add a better structure to our tests we use nested test fixtures.

public class OuterTestFixture{
    public class InnerTestFixture{
        [Test]
        public void ActualTest()
    }
}

We recently started using theories for our tests and ran into the issue that having nested classes makes the use of theories unnecessarily complicated. We have to duplicate data points and data point sources in every nested class to get the theories to recognize them.

It would be great if theories could recognize data points from their declaring types. To avoid issues with backward compatibility this could be activated through a flag on the Theory attribute.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions