Skip to content

Commit b12ad77

Browse files
Merge pull request #47 from atc-net/hotfix/improve-the-version-experience-for-version-290
Hotfix/improve the version experience for version 290
2 parents f1e9c07 + ce4c923 commit b12ad77

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

Atc.Test.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{4B46C47D-D
2626
test\Directory.Build.props = test\Directory.Build.props
2727
EndProjectSection
2828
EndProject
29+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{014851A9-0672-4268-9856-181B0BB26F71}"
30+
ProjectSection(SolutionItems) = preProject
31+
README.md = README.md
32+
EndProjectSection
33+
EndProject
2934
Global
3035
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3136
Debug|Any CPU = Debug|Any CPU

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
Common tools for writing tests using XUnit, AutoFixture, NSubstitute and FluentAssertions.
66

7+
> **Version Notes:**
8+
> If you are using the `MemberAutoNSubstituteData` attribute, ensure that both `xunit` and `xunit.extensibility.core` packages are set to version **2.9.0**.
9+
> This is because the latest versions of xUnit are currently incompatible with `MemberAutoNSubstituteData` due to an unresolved issue. Although [xunit/xunit#3031](https://github.com/xunit/xunit/issues/3031) has been closed, the problem remains unresolved.
10+
> Upgrading beyond version 2.9.0 may result in test failures or unexpected behavior.
11+
12+
713
## Test Attributes
814

915
| Name | Description |
@@ -12,7 +18,8 @@ Common tools for writing tests using XUnit, AutoFixture, NSubstitute and FluentA
1218
| `InlineAutoNSubstituteData` | Provides a data source for a data theory, with the data coming from inline values combined with auto-generated data specimens generated by AutoFixture and NSubstitute.|
1319
| `MemberAutoNSubstituteData` | Provides a data source for a data theory, with the data coming from one of the following sources and combined with auto-generated data specimens generated by AutoFixture and NSubstitute.|
1420

15-
Note: NSubstitute is used when the type being created is abstract, or when the `[Substitute]` is applied.
21+
> **Note:**
22+
> NSubstitute is used when the type being created is abstract, or when the `[Substitute]` is applied.
1623
1724
## Test Helpers
1825

src/Atc.Test/Atc.Test.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
<PackageReference Include="NSubstitute" Version="5.3.0" />
2121
<PackageReference Include="System.Net.Http" Version="4.3.4" />
2222
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
23-
<PackageReference Include="xunit.extensibility.core" Version="[2.9.0]" /> <!-- xunit.extensibility.core is version-pinned because versions newer than 2.9.0 introduce bugs -->
23+
<PackageReference Include="xunit" Version="2.9.0" /> <!-- xunit should not be upgraded since newer version than 2.9.0 introduce bugs for MemberAutoNSubstituteDataAttribute -->
24+
<PackageReference Include="xunit.extensibility.core" Version="2.9.0" /> <!-- xunit.extensibility.core should not be upgraded since newer version than 2.9.0 introduce bugs for MemberAutoNSubstituteDataAttribute -->
2425
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2526
</ItemGroup>
2627

test/Atc.Test.Tests/Atc.Test.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>
16-
<PackageReference Include="coverlet.collector" Version="6.0.3">
16+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
<PrivateAssets>all</PrivateAssets>
1919
</PackageReference>

0 commit comments

Comments
 (0)