public void GetSeedTest(int min, int max, FactoryRandom sut) { //act var expected = sut.GenerateSeed(); //assert Assert.InRange(expected, min, max); }
public void CreateTest(int seed, FactoryRandom sut) { //act var expected = sut.Create(seed); //assert Assert.NotNull(expected); Assert.IsType <Random>(expected); }
public void NextTest(int min, int max, FactoryRandom factory) { //arrange var sut = new RandomExecutor(factory); //act var expected = sut.Next(min, max); //assert Assert.InRange(expected, min, max); }