You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, SetUpFixture states "all the test fixtures in a given namespace including nested namespaces below". However, if a root namespace spans accross multiple test assemblies this statement is wrong. Consider an assembly structure like:
Even if the SetUpFixture is placed into the MyScope root namespace, adding it only to the first assembly won't fulfill the "all the test fixtures in a given namespace" statement.
Proposing to more clearly state that a SetUpFixture is...
...limited to the assembly it is contained in
...only then "all the test fixtures in a given namespace including nested namespaces below"
Note that "Notes" currently include "A SetUpFixture outside of any namespace provides SetUp and TearDown for the entire assembly." which implies SetUpFixture is limited to an assembly, but only implicitly. One approach is to rearrange the notes like:
A SetUpFixture is limited to an assembly.
A SetUpFixture in a namespace will apply to all tests in that namespace and all contained namespaces of the assembly.
A SetUpFixture outside of any namespace provides SetUp and TearDown for the entire assembly.
Another approach is to already state this in the very first sentence.
Or a combination of both.
Related to #4686 which requires to place a SetUpFixture into each required assembly. Somewhat related to #4106.
The text was updated successfully, but these errors were encountered:
Currently, SetUpFixture states "all the test fixtures in a given namespace including nested namespaces below". However, if a root namespace spans accross multiple test assemblies this statement is wrong. Consider an assembly structure like:
Even if the
SetUpFixture
is placed into theMyScope
root namespace, adding it only to the first assembly won't fulfill the "all the test fixtures in a given namespace" statement.Proposing to more clearly state that a SetUpFixture is...
Note that "Notes" currently include "A SetUpFixture outside of any namespace provides SetUp and TearDown for the entire assembly." which implies
SetUpFixture
is limited to an assembly, but only implicitly. One approach is to rearrange the notes like:Another approach is to already state this in the very first sentence.
Or a combination of both.
Related to #4686 which requires to place a
SetUpFixture
into each required assembly. Somewhat related to #4106.The text was updated successfully, but these errors were encountered: