Ejemplo n.º 1
0
 private void CalculateShift()
 {
     foreach (var signal in _signals)
     {
         var result = _signalProcessor.Shift(signal, Shift);
         Console.WriteLine($"Shift {signal} on {Shift} = {result}");
     }
 }
        public void Shift(int shift, params double[] readouts)
        {
            var result = _subject.Shift(_signal1, shift);

            Assert.That(result.Readouts, Is.Not.Null);
            Assert.That(result.Readouts[0], Is.EqualTo(readouts[0]));
            Assert.That(result.Readouts[1], Is.EqualTo(readouts[1]));
            Assert.That(result.Readouts[2], Is.EqualTo(readouts[2]));
        }