public void GenerateRandomInt_ShouldReturnInteger() { //Arrange //Act var actual = _sut.GenerateRandomInt(); //Assert Assert.IsNotNull(actual); Assert.IsInstanceOfType(actual, typeof(int)); }
public static int addRandomNumber(int a, BadRandomGenerator random) { return(a + random.GenerateRandomInt()); }