Exemplo n.º 1
0
        public void GetSeedTest(int min, int max, FactoryRandom sut)
        {
            //act
            var expected = sut.GenerateSeed();

            //assert
            Assert.InRange(expected, min, max);
        }
Exemplo n.º 2
0
        public void CreateTest(int seed, FactoryRandom sut)
        {
            //act
            var expected = sut.Create(seed);

            //assert
            Assert.NotNull(expected);
            Assert.IsType <Random>(expected);
        }
Exemplo n.º 3
0
        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);
        }