github
2261 of 3734 branches covered (60.55%)
Branch coverage included in aggregate %.
12 of 16 new or added lines in 1 file covered. (75.0%)
136 existing lines in 23 files now uncovered.8459 of 12825 relevant lines covered (65.96%)
310609.11 hits per line
1 |
using Zilon.Core.CommonServices.Dices; |
|
2 |
using Zilon.Core.Persons.Survival;
|
|
3 |
|
|
4 |
namespace Zilon.Core.Persons
|
|
5 |
{ |
|
6 |
public class SurvivalRandomSource : ISurvivalRandomSource |
|
7 |
{ |
|
8 |
private readonly IDice _dice;
|
|
9 |
|
|
10 |
public SurvivalRandomSource(IDice dice)
|
4✔ |
11 |
{ |
4✔ |
12 |
_dice = dice; |
4✔ |
13 |
} |
4✔ |
14 |
|
|
15 |
public int RollMaxHazardDamage() |
|
UNCOV
16
|
{ |
× |
UNCOV
17
|
return _dice.Roll(6); |
× |
UNCOV
18
|
} |
× |
19 |
|
|
20 |
public int RollSurvival(SurvivalStat stat) |
|
21 |
{ |
5,616✔ |
22 |
return _dice.Roll(6); |
5,616✔ |
23 |
} |
5,616✔ |
24 |
} |
|
25 |
} |