public void GenerateRandomInt_ShouldReturnInteger()
        {
            //Arrange
            //Act
            var actual = _sut.GenerateRandomInt();

            //Assert
            Assert.IsNotNull(actual);
            Assert.IsInstanceOfType(actual, typeof(int));
        }
Esempio n. 2
0
 public static int addRandomNumber(int a, BadRandomGenerator random)
 {
     return(a + random.GenerateRandomInt());
 }