15 lines
344 B
C#
15 lines
344 B
C#
namespace RpgRoller.Tests;
|
|
|
|
public sealed class RandomDiceRollerTests
|
|
{
|
|
[Fact]
|
|
public void RandomDiceRoller_ProducesValueWithinRange()
|
|
{
|
|
var roller = new RandomDiceRoller();
|
|
for (var i = 0; i < 64; i += 1)
|
|
{
|
|
var value = roller.Roll(12);
|
|
Assert.InRange(value, 1, 12);
|
|
}
|
|
}
|
|
} |