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.
To add a better structure to our tests we use nested test fixtures.
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
Theoryattribute.