internal int CollectionCount(int testIndex) { int n = 0; if (testIndex < 0) n = 3; else n = (int)Math.Pow(2, testIndex); return n; }