Reorganize tests by API and service concerns
This commit is contained in:
17
RpgRoller.Tests/Services/RandomDiceRollerTests.cs
Normal file
17
RpgRoller.Tests/Services/RandomDiceRollerTests.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using RpgRoller.Services;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user