Exemple #1
0
        // CTOR
        //
        public ArrayNumericalEdgeCasesMutator(DataElement obj)
        {
            name         = "ArrayNumericalEdgeCasesMutator";
            currentCount = 0;
            n            = getN(obj, 50);
            values       = NumberGenerator.GenerateBadPositiveNumbers(16, n);

            // this will weed out invalid values that would cause the length to be less than 0
            List <long> newVals = new List <long>(values);

            newVals.RemoveAll(RemoveInvalid);
            values = newVals.ToArray();
        }