You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dice_App/Sources/MaSoluction/Testeur/TestMethodeRandom.cs

32 lines
573 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
namespace Testeur
{
class TestMethodeRandom
{
[Fact]
public void TesterMethodeRandom()
{
//Arrange
NumberDie nd = new NumberDie("de1",2,13);
//Act
int actual = nd.getRandom();
int expectedMin = nd.Min;
int expectedMax = nd.Max;
//Assert
Assert.InRange(actual, expectedMin, expectedMax);
}
}
}