System.Perf.StringBuilding.StringBuildingTester.CollectionCount C# (CSharp) Method

CollectionCount() private method

private CollectionCount ( int testIndex ) : int
testIndex int
return int
        internal int CollectionCount(int testIndex)
        {
            int n = 0;

            if (testIndex < 0)
                n = 3;
            else
                n = (int)Math.Pow(2, testIndex);

            return n;
        }