2023-07-19 16:19:51 +02:00

17 lines
356 B
C#

using pacMan.GameStuff.Items;
namespace BackendTests.Game.Items;
public class DiceTests
{
[Test]
public void Roll_ReturnsNumberBetween1And6()
{
var dice = new Dice();
dice.Roll();
var roll = dice.Value;
Assert.That(roll, Is.GreaterThanOrEqualTo(1));
Assert.That(roll, Is.LessThanOrEqualTo(6));
}
}