Skip to content

Commit 1f4cc4e

Browse files
style(tests): fix test naming convention violations
Rename tests to follow SystemUnderTest_StateUnderTest_ExpectedBehavior: - SetMultiGasConstraintsFromSingleGasConstraints_WhenCalled_ConvertsCorrectly - SetMultiGasConstraintsFromSingleGasConstraints_WhenExistingConstraintsPresent_ClearsExisting - MultiDimensionalPriceForRefund_WhenL1Calldata_UsesBaseFeeWei - MultiDimensionalPriceForRefund_WhenZeroFee_UsesBaseFeeWei
1 parent 1479bf3 commit 1f4cc4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Nethermind.Arbitrum.Test/Arbos/Storage/L2PricingStateTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public void UpdatePricingModelMultiConstraints_DivisorZero_ThrowsException()
846846
#region Coverage: Migration Path
847847

848848
[Test]
849-
public void SetMultiGasConstraintsFromSingleGasConstraints_ConvertsCorrectly()
849+
public void SetMultiGasConstraintsFromSingleGasConstraints_WhenCalled_ConvertsCorrectly()
850850
{
851851
IWorldState worldState = TestWorldStateFactory.CreateForTest();
852852
using IDisposable worldStateDisposer = worldState.BeginScope(IWorldState.PreGenesis);
@@ -923,7 +923,7 @@ public void SetMultiGasConstraintsFromSingleGasConstraints_LargeAdjustmentWindow
923923
}
924924

925925
[Test]
926-
public void SetMultiGasConstraintsFromSingleGasConstraints_ClearsExistingMultiGasConstraints()
926+
public void SetMultiGasConstraintsFromSingleGasConstraints_WhenExistingConstraintsPresent_ClearsExisting()
927927
{
928928
IWorldState worldState = TestWorldStateFactory.CreateForTest();
929929
using IDisposable worldStateDisposer = worldState.BeginScope(IWorldState.PreGenesis);
@@ -1200,7 +1200,7 @@ public void CommitMultiGasFees_WhenMultiGasConstraints_CommitsNextToCurrent()
12001200
}
12011201

12021202
[Test]
1203-
public void MultiDimensionalPriceForRefund_L1CalldataUsesBaseFeeWei()
1203+
public void MultiDimensionalPriceForRefund_WhenL1Calldata_UsesBaseFeeWei()
12041204
{
12051205
IWorldState worldState = TestWorldStateFactory.CreateForTest();
12061206
using IDisposable worldStateDisposer = worldState.BeginScope(IWorldState.PreGenesis);
@@ -1236,7 +1236,7 @@ public void MultiDimensionalPriceForRefund_L1CalldataUsesBaseFeeWei()
12361236
}
12371237

12381238
[Test]
1239-
public void MultiDimensionalPriceForRefund_ZeroFeeUsesBaseFeeWei()
1239+
public void MultiDimensionalPriceForRefund_WhenZeroFee_UsesBaseFeeWei()
12401240
{
12411241
IWorldState worldState = TestWorldStateFactory.CreateForTest();
12421242
using IDisposable worldStateDisposer = worldState.BeginScope(IWorldState.PreGenesis);

0 commit comments

Comments
 (0)