Skip to content

Commit 0bf57ec

Browse files
committed
♻️Rename UnitAbbreviationsCacheFixture to DisableParallelizationCollectionFixture
1 parent 042245e commit 0bf57ec

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

UnitsNet.Tests/CustomCode/LengthTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace UnitsNet.Tests
1111
// Avoid accessing static prop DefaultToString in parallel from multiple tests:
1212
// UnitSystemTests.DefaultToStringFormatting()
1313
// LengthTests.ToStringReturnsCorrectNumberAndUnitWithCentimeterAsDefualtUnit()
14-
[Collection(nameof(UnitAbbreviationsCacheFixture))]
14+
[Collection(nameof(DisableParallelizationCollectionFixture))]
1515
public class LengthTests : LengthTestsBase
1616
{
1717
protected override bool SupportsSIUnitSystem => true;

UnitsNet.Tests/CustomCode/ParseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace UnitsNet.Tests
1515
/// reasonable to assume that testing one unit class would cover
1616
/// all of them. Obviously, that can change in the future.
1717
/// </remarks>
18-
[Collection(nameof(UnitAbbreviationsCacheFixture))]
18+
[Collection(nameof(DisableParallelizationCollectionFixture))]
1919
public class ParseTests
2020
{
2121
[Theory]

UnitsNet.Tests/UnitAbbreviationsCacheFixture.cs renamed to UnitsNet.Tests/DisableParallelizationCollectionFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ namespace UnitsNet.Tests;
1414
/// This is not necessary for thread-static fields like <see cref="CultureInfo"/>.<see cref="CultureInfo.CurrentCulture"/>, typically used when testing Parse/ToString() without an explicit culture,
1515
/// as long as each test method reverts its changes with try-finally or <see cref="CultureScope"/>.
1616
/// </remarks>
17-
[CollectionDefinition(nameof(UnitAbbreviationsCacheFixture), DisableParallelization = true)]
18-
public class UnitAbbreviationsCacheFixture : ICollectionFixture<object>;
17+
[CollectionDefinition(nameof(DisableParallelizationCollectionFixture), DisableParallelization = true)]
18+
public class DisableParallelizationCollectionFixture : ICollectionFixture<object>;

UnitsNet.Tests/QuantityTests.ToString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace UnitsNet.Tests
1111
{
12-
[Collection(nameof(UnitAbbreviationsCacheFixture))]
12+
[Collection(nameof(DisableParallelizationCollectionFixture))]
1313
public partial class QuantityTests
1414
{
1515
public class ToStringTests

UnitsNet.Tests/UnitAbbreviationsCacheTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace UnitsNet.Tests
1111
{
12-
[Collection(nameof(UnitAbbreviationsCacheFixture))]
12+
[Collection(nameof(DisableParallelizationCollectionFixture))]
1313
public class UnitAbbreviationsCacheTests
1414
{
1515
private const string AmericanCultureName = "en-US";

UnitsNet.Tests/UnitParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace UnitsNet.Tests
1111
{
12-
[Collection(nameof(UnitAbbreviationsCacheFixture))]
12+
[Collection(nameof(DisableParallelizationCollectionFixture))]
1313
public class UnitParserTests
1414
{
1515
[Theory]

0 commit comments

Comments
 (0)