To ensure developers put into the right place the Fixture annotation.
Here are some examples:
// Bad
[Fixture]
function testA () {
// ...
}
// Good
[Fixture]
MyApi.testA = function () {
// ...
};
// Bad
[Fixture]
function myFixture () {
[Fact]
function testA () {
// ...
}
}
// Good
[Fixture]
MyApi.testA = function () {
[Fixture]
function myFixture () {
[Fact]
function testA () {
// ...
}
}
};