Exemplo n.º 1
0
        public void TestMedian()
        {
            var generator = new GeneratorTestAscan();
            var processor = new RawDataProcessor();
            processor.Scenario.Add(new ProcessingMedian());

            var median = processor.Process(generator.GetAscans1());

            Assert.That(median[0], Is.EqualTo(2));
        }
Exemplo n.º 2
0
        public void TestAverage()
        {
            var generator = new GeneratorTestAscan();
            var processor = new RawDataProcessor();
            processor.Scenario.Add(new ProcessingAverage());

            var avg = processor.Process(generator.GetAscans1());

            Assert.That(avg[1], Is.EqualTo(5));
        }