public void correctScrambleSizeSmallMode()
        {
            int[] testArray1 = new int[10] {
                25, 18, 42, 100, -100, -5, 5, 9, 500, 2000
            };
            int[]      testArray2;
            int        sizeCount    = 0;
            int        expectedSize = 10;
            dataFilter test2        = new dataFilter(false);

            testArray2 = test2.scramble(testArray1);

            foreach (int i in testArray2)
            {
                sizeCount++;
            }

            Assert.AreEqual(expectedSize, sizeCount, 0);
        }
示例#2
0
 // Pre: None
 // Post: Internal sequence in dataFilter will be changed.
 public int[] simpleScramble(int [] userSequence)
 {
     return(DFComposite.scramble(userSequence));
 }