public void Radix2ThrowsWhenNotPowerOfTwo() { var samples = SignalGenerator.Random((u, v) => new Complex(u, v), GetUniform(1), 0x7F); var dft = new DiscreteFourierTransform(); Assert.Throws(typeof(ArgumentException), () => dft.Radix2Forward(samples, FourierOptions.Default)); Assert.Throws(typeof(ArgumentException), () => dft.Radix2Inverse(samples, FourierOptions.Default)); Assert.Throws(typeof(ArgumentException), () => DiscreteFourierTransform.Radix2(samples, -1)); Assert.Throws(typeof(ArgumentException), () => DiscreteFourierTransform.Radix2Parallel(samples, -1)); }