Пример #1
0
        public void GetSeedTest(int min, int max, FactoryRandom sut)
        {
            //act
            var expected = sut.GenerateSeed();

            //assert
            Assert.InRange(expected, min, max);
        }
Пример #2
0
        public void CreateTest(int seed, FactoryRandom sut)
        {
            //act
            var expected = sut.Create(seed);

            //assert
            Assert.NotNull(expected);
            Assert.IsType <Random>(expected);
        }
Пример #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);
        }