public void AlignTest() { TimeStampSeries ts1 = new TimeStampSeries(); TimeStampSeries ts2 = new TimeStampSeries(); for (int i = 0; i < 100; i++) { ts1.Items.Add(new TimeStampValue(new DateTime(2010, 1, 1).AddDays(i), i)); ts2.Items.Add(new TimeStampValue(new DateTime(2010, 2, 1).AddDays(i), i)); } TimeStampValue[] t1; TimeStampValue[] t2; TSTools.AlignSeries(ts1, ts2, out t1, out t2); Assert.AreEqual(t1.Count(), t2.Count()); }