public void RandomCollectionOfTypeShouldReturnADifferentCollectionEachTime()
        {
            var stringCollection1 = RandomValue.Collection <string>();
            var stringCollection2 = RandomValue.Collection <string>();

            var intCollection1 = RandomValue.Collection <int>();
            var intCollection2 = RandomValue.Collection <int>();

            stringCollection1.ShouldNotEqual(stringCollection2);
            intCollection1.ShouldNotEqual(intCollection2);
        }
        public void RandomColletionWithRecursiveWillGenerateChildObjectsToTheSpecifiedDepthWithSettings()
        {
            var result = RandomValue.Collection <ObjectWithRecursiveCollections>(Depth2Settings);

            result.Count().ShouldBeInRange(1, 3);

            var depth1 = result.FirstOrDefault();

            depth1.RecursiveCollection.ShouldNotBeDefault();
            depth1.Int.ShouldNotBeDefault();
            depth1.RecursiveCollection.Count.ShouldBeInRange(1, 3);

            var depth2 = depth1.RecursiveCollection.FirstOrDefault();

            depth2.RecursiveCollection.ShouldNotBeDefault();
            depth2.Int.ShouldNotBeDefault();
            depth2.RecursiveCollection.Count.ShouldBeInRange(1, 3);

            var depth3 = depth2.RecursiveCollection.FirstOrDefault();

            depth3.RecursiveCollection.ShouldEqual(null);
            depth3.Int.ShouldNotBeDefault();
        }
        public void RandomCollectionOfTypeShouldReturnARandomCollectionOfTheSpecifiedSize()
        {
            var stringCollection = RandomValue.Collection <string>(25);

            stringCollection.Count.ShouldEqual(25);
        }