github
2104 of 3390 branches covered (62.06%)
Branch coverage included in aggregate %.
32 of 42 new or added lines in 3 files covered. (76.19%)
44 existing lines in 10 files now uncovered.7492 of 11243 relevant lines covered (66.64%)
111898.1 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)
|
8✔ |
11 |
{ |
8✔ |
12 |
_dice = dice; |
8✔ |
13 |
} |
8✔ |
14 |
|
|
15 |
public int RollMaxHazardDamage() |
|
UNCOV
16
|
{ |
× |
UNCOV
17
|
return _dice.Roll(6); |
× |
UNCOV
18
|
} |
× |
19 |
|
|
20 |
public int RollSurvival(SurvivalStat stat) |
|
21 |
{ |
18,540✔ |
22 |
return _dice.Roll(6); |
18,540✔ |
23 |
} |
18,540✔ |
24 |
} |
|
25 |
} |