Ejemplo n.º 1
0
 // PRECONDITION: The dataFilter and beacon types contain a sequence.
 // POSTCONDITION: The dataFilter sequence is filtered and assigned to
 // the beacon sequence. Signals from before and after the filter are
 // returned from the beacon.
 public int[] filterSignal()
 {
     if (!active)
     {
         return(null);
     }
     int[] signals = new int[2];
     signals[0] = beaconType.emitSignal();
     beaconType.newSeq(dataFilterType.filter());
     signals[1] = beaconType.emitSignal();
     return(signals);
 }
        public void nullSequenceTest()
        {
            bool cmon     = true;
            int  sizeTest = 0;

            int[]      testArray;
            dataFilter test3 = new dataFilter(cmon);

            testArray = test3.filter();

            foreach (int i in testArray)
            {
                sizeTest++;
            }

            Assert.AreEqual(1, sizeTest, 0);
        }
Ejemplo n.º 3
0
 // Pre: None
 // Post: None
 public int[] simpleFilter()
 {
     return(DFComposite.filter());
 }