public void TestMinMaxFinishedFrontShortHistory() { FrontDetectionTestSequence seq = this.FinishedFrontSequence; SeriesStatisticsCollector ssc = new SeriesStatisticsCollector(4); ssc.AddSequence(seq.sequence); NUnit.Framework.Assert.AreEqual(2, ssc.GetMin()); NUnit.Framework.Assert.AreEqual(4, ssc.GetMax()); }
public void TestMinMaxUnFinishedFront() { FrontDetectionTestSequence seq = this.UnifinishedFrontSequence; SeriesStatisticsCollector ssc = new SeriesStatisticsCollector(seq.sequence.Length); ssc.AddSequence(seq.sequence); NUnit.Framework.Assert.AreEqual(-2, ssc.GetMin()); NUnit.Framework.Assert.AreEqual(4, ssc.GetMax()); }