using pacMan.GameStuff.Items; namespace BackendTests.Game.Items; [TestFixture] [TestOf(nameof(DiceCup))] public class DiceCupTests { [Test] public void Roll_ReturnsTwoElements() { var diceCup = new DiceCup(); diceCup.Roll(); var roll = diceCup.Values; Assert.That(roll, Has.Count.EqualTo(2)); } [Test] public void Roll_ReturnsNumbersInRange1To6() { var diceCup = new DiceCup(); diceCup.Roll(); var roll = diceCup.Values; Assert.Multiple(() => { Assert.That(roll[0], Is.GreaterThanOrEqualTo(1)); Assert.That(roll[0], Is.LessThanOrEqualTo(6)); Assert.That(roll[1], Is.GreaterThanOrEqualTo(1)); Assert.That(roll[1], Is.LessThanOrEqualTo(6)); }); } }