Skip to content

Commit c2d5d48

Browse files
committed
fix: rename XUnit collection classes to avoid CA1711 warning
Rename collection definition classes from *Collection to *TestFixture to comply with CA1711 code analysis rule that prohibits type names ending in 'Collection'. The [CollectionDefinition] attribute and collection names remain unchanged, only the class names are renamed.
1 parent cacc977 commit c2d5d48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CycloneDX.MSBuild.Tests/IntegrationTests/TestCollections.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ namespace CycloneDX.MSBuild.Tests.IntegrationTests;
99

1010
// SimpleProject tests - serialize to avoid file locking on SimpleProject.dll
1111
[CollectionDefinition("SimpleProject")]
12-
public class SimpleProjectCollection
12+
public class SimpleProjectTestFixture
1313
{
1414
}
1515

1616
// MultiTargetProject tests - serialize to avoid file locking
1717
[CollectionDefinition("MultiTargetProject")]
18-
public class MultiTargetProjectCollection
18+
public class MultiTargetProjectTestFixture
1919
{
2020
}
2121

2222
// DisabledProject tests - serialize to avoid file locking
2323
[CollectionDefinition("DisabledProject")]
24-
public class DisabledProjectCollection
24+
public class DisabledProjectTestFixture
2525
{
2626
}
2727

2828
// Configuration tests can run in parallel with project-specific tests
2929
// but serialize among themselves
3030
[CollectionDefinition("Configuration")]
31-
public class ConfigurationCollection
31+
public class ConfigurationTestFixture
3232
{
3333
}

0 commit comments

Comments
 (0)