public void ShouldBeFull(int times, int rangeStart, int rangeSize) { AudioData info = new AudioData(new TimeSpan(), 2, 20, 1, 1, 2, "bla"); HistogramProcessor histogramProcessor = new HistogramProcessor(info, rangeStart, rangeSize, 0); float[] val = { 5f, 5f }; for (int i = 0; i < times; ++i) { histogramProcessor.AddToQueue(new System.Collections.Generic.KeyValuePair <int, float[]>(5, val)); } Assert.True(histogramProcessor.IsFull); }
public void ShouldNotBeInRange(int x) { HistogramProcessor histogramProcessor = new HistogramProcessor(new AudioData(), 0, 10, 0); Assert.False(histogramProcessor.IsInRange(x)); }