Skip to content

Commit 2713039

Browse files
committed
Update test class attribute in README example #327
Changed [CollectionDefinition] to [Collection] in the test class example to correctly demonstrate usage with xUnit Dependency Injection.
1 parent c67d744 commit 2713039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public class MyTestFixture : TestBedFixture
112112
using Xunit.Microsoft.DependencyInjection.Abstracts;
113113
using Xunit.Microsoft.DependencyInjection.Attributes;
114114

115-
[CollectionDefinition("Dependency Injection")]
115+
[Collection("Dependency Injection")]
116116
public class MyTests : TestBedWithDI<MyTestFixture>
117117
{
118118
[Inject] private IMyService MyService { get; set; } = null!;

0 commit comments

Comments
 (0)