Ejemplo n.º 1
0
        public static T SelectFrom <T>(this IFixture fixture, IEnumerable <T> collection)
        {
            var items        = collection.ToList();
            var elementIndex = fixture.CreateInRange(0, items.Count - 1);

            return(items[elementIndex]);
        }