public void Extension(int extensionCoefficient, params double[] readouts) { var expectedReadoutsCount = extensionCoefficient * _signal2.Count; var result = _subject.Extension(_signal2, extensionCoefficient); Assert.That(result.Readouts, Is.Not.Null); Assert.That(result.Readouts.Count, Is.EqualTo(expectedReadoutsCount)); 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])); Assert.That(result.Readouts[3], Is.EqualTo(readouts[3])); }
private void CalculateExtension() { foreach (var signal in _signals) { var result = _signalProcessor.Extension(signal, ExtensionCoefficient); Console.WriteLine($"Extension {signal} on {ExtensionCoefficient} = {result}"); } }