Skip to content

Commit

Permalink
rename a few unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed Sep 6, 2023
1 parent 135197a commit 509cc02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .Lib9c.Tests/Model/Stake/ContractTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ContractTest
Contract.StakeRegularRewardSheetPrefix + "test",
long.MaxValue,
long.MaxValue)]
public void Constructor_Default(
public void Constructor(
string stakeRegularFixedRewardSheetTableName,
string stakeRegularRewardSheetTableName,
long rewardInterval,
Expand Down Expand Up @@ -127,7 +127,7 @@ public void Constructor_With_StakePolicySheet_Throw_ArgumentNullException()
[Theory]
[InlineData(StakePolicySheetFixtures.V1)]
[InlineData(StakePolicySheetFixtures.V2)]
public void Constructor_StakePolicySheet(string stakePolicySheetCsv)
public void Constructor_With_StakePolicySheet(string stakePolicySheetCsv)
{
var sheet = new StakePolicySheet();
sheet.Set(stakePolicySheetCsv);
Expand Down
6 changes: 3 additions & 3 deletions .Lib9c.Tests/Model/Stake/StakeStateV2Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void DeriveAddress()
[Theory]
[InlineData(0, 0)]
[InlineData(long.MaxValue, long.MaxValue)]
public void Constructor_Default(long startedBlockIndex, long receivedBlockIndex)
public void Constructor(long startedBlockIndex, long receivedBlockIndex)
{
var contract = new Contract(
Contract.StakeRegularFixedRewardSheetPrefix,
Expand Down Expand Up @@ -60,7 +60,7 @@ public void Constructor_Throw_ArgumentOutOfRangeException(
[InlineData(0, 0)]
[InlineData(long.MaxValue, null)]
[InlineData(long.MaxValue, long.MaxValue)]
public void Constructor_StakeState(long startedBlockIndex, long? receivedBlockIndex)
public void Constructor_With_StakeState(long startedBlockIndex, long? receivedBlockIndex)
{
var stakeState = new StakeState(
new PrivateKey().ToAddress(),
Expand All @@ -82,7 +82,7 @@ public void Constructor_StakeState(long startedBlockIndex, long? receivedBlockIn
}

[Fact]
public void Constructor_StakeState_Throw_ArgumentNullException()
public void Constructor_With_StakeState_Throw_ArgumentNullException()
{
var stakeState = new StakeState(new PrivateKey().ToAddress(), 0);
var contract = new Contract(
Expand Down

0 comments on commit 509cc02

Please sign in to comment.