@@ -6,6 +6,7 @@ namespace Lib9c.Tests
66 using Lib9c . Tests . Action ;
77 using Libplanet . Action ;
88 using Libplanet . Crypto ;
9+ using Nekoyume ;
910 using Nekoyume . Action ;
1011 using Nekoyume . Arena ;
1112 using Nekoyume . Model ;
@@ -14,6 +15,7 @@ namespace Lib9c.Tests
1415 using Nekoyume . Model . Skill ;
1516 using Nekoyume . Model . Stat ;
1617 using Nekoyume . Model . State ;
18+ using Nekoyume . TableData ;
1719 using Xunit ;
1820 using Xunit . Abstractions ;
1921
@@ -70,12 +72,17 @@ public void Simulate()
7072 new List < StatModifier >
7173 {
7274 new ( StatType . ATK , StatModifier . OperationType . Add , 1 ) ,
75+ new ( StatType . HP , StatModifier . OperationType . Add , 100 ) ,
7376 } ,
7477 new List < StatModifier >
7578 {
7679 new ( StatType . DEF , StatModifier . OperationType . Add , 1 ) ,
80+ new ( StatType . HP , StatModifier . OperationType . Add , 100 ) ,
7781 }
7882 ) ;
83+ CharacterSheet . Row row =
84+ _tableSheets . CharacterSheet [ GameConfig . DefaultAvatarCharacterId ] ;
85+ var expectedHp = ( new CharacterStats ( row , myDigest . Level ) . HP + 100 ) * simulator . HpModifier ;
7986
8087 Assert . Equal ( _random , simulator . Random ) ;
8188
@@ -88,6 +95,8 @@ public void Simulate()
8895 {
8996 if ( player . Character is ArenaCharacter arenaCharacter )
9097 {
98+ Assert . Equal ( expectedHp , arenaCharacter . HP ) ;
99+ Assert . Equal ( expectedHp , arenaCharacter . CurrentHP ) ;
91100 arenaCharacters . Add ( arenaCharacter ) ;
92101 }
93102 }
0 commit comments