public void Returns_the_same_instance_every_time()
        {
            var pool = new SingleValueGeneratorPool(new SimpleValueGeneratorFactory<TemporaryValueGenerator>(), Mock.Of<IProperty>());

            var generator = pool.GetGenerator();
            Assert.NotNull(generator);
            Assert.Same(generator, pool.GetGenerator());
        }
Exemple #2
0
        public void Returns_the_same_instance_every_time()
        {
            var pool = new SingleValueGeneratorPool(new SimpleValueGeneratorFactory <TemporaryValueGenerator>(), Mock.Of <IProperty>());

            var generator = pool.GetGenerator();

            Assert.NotNull(generator);
            Assert.Same(generator, pool.GetGenerator());
        }