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); subsetToCheck = intGenerator.GenerateSelectionSubset(startingElements, CountToCheck); hashSet = new HashSet <int>(startingElements); pooledSet = new PooledSet <int>(startingElements); }