예제 #1
0
        public void GlobalSetup()
        {
            var intGenerator = new RandomTGenerator <int>(InstanceCreators.IntGenerator);

            startingElements = intGenerator.MakeNewTs(InitialSetSize);
            stuffToAdd       = intGenerator.MakeNewTs(CountToAdd);
        }
        public void GlobalSetup()
        {
            var intGenerator = new RandomTGenerator <int>(InstanceCreators.IntGenerator);

            startingElements = intGenerator.MakeNewTs(InitialSetSize);
            stuffToRemove    = intGenerator.GenerateSelectionSubset(startingElements, CountToRemove);
        }
        public void GlobalSetup()
        {
            var intGenerator = new RandomTGenerator <int>(InstanceCreators.IntGenerator);

            int[] startingElements = intGenerator.MakeNewTs(InitialSetSize);

            hashSet   = new HashSet <int>(startingElements);
            pooledSet = new PooledSet <int>(startingElements);
        }
        public void GlobalSetup()
        {
            var intGenerator = new RandomTGenerator <int>(InstanceCreators.IntGenerator);

            int[] startingElements = intGenerator.MakeNewTs(InitialSetSize);
            subsetToCheck = intGenerator.GenerateSelectionSubset(startingElements, CountToCheck);

            hashSet   = new HashSet <int>(startingElements);
            pooledSet = new PooledSet <int>(startingElements);
        }
예제 #5
0
        public void GlobalSetup()
        {
            var intGenerator = new RandomTGenerator <int>(InstanceCreators.IntGenerator);

            startingElements = intGenerator.MakeNewTs(InitialSetSize);
            stuffToExcept    = intGenerator.GenerateMixedSelection(startingElements, CountToIntersect);

            hashSet           = new HashSet <int>();
            hashSetToExcept   = new HashSet <int>(stuffToExcept);
            pooledSet         = new PooledSet <int>();
            pooledSetToExcept = new PooledSet <int>(stuffToExcept);
        }
        public void GlobalSetup()
        {
            var intGenerator = new RandomTGenerator <int>(InstanceCreators.IntGenerator);

            int[] startingElements = intGenerator.MakeNewTs(InitialSetSize);
            stuffToUnion = intGenerator.GenerateMixedSelection(startingElements, CountToUnion);

            hashSet = new HashSet <int>(startingElements);
            hashSet.UnionWith(stuffToUnion);
            pooledSet = new PooledSet <int>(startingElements);
            pooledSet.UnionWith(stuffToUnion);
        }