Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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());
        }