public void TestTwoItemBlock()
 {
     var timeline = new ItemPurchaseTimeline();
     timeline.AddToEndByItemId(3086, TimeSpan.Zero);
     timeline.AddToEndByItemId(3087, TimeSpan.FromSeconds(14));
     timeline.AddToEndByItemId(3087, TimeSpan.FromSeconds(16));
     var itemBlocks = timeline.TryToSplitIntoPurchases(15);
     Assert.AreEqual(2, itemBlocks.Count);
     Assert.AreEqual(2, itemBlocks[0].Items.Count);
     Assert.AreEqual("First Purchase", itemBlocks[0].Name);
     Assert.AreEqual(1, itemBlocks[1].Items.Count);
     Assert.AreEqual("Next Purchase", itemBlocks[1].Name);
 }
 public void TestOneBigItemBlock()
 {
     var timeline = new ItemPurchaseTimeline();
     timeline.AddToEndByItemId(3086, new TimeSpan(10));
     timeline.AddToEndByItemId(3087, new TimeSpan(20));
     timeline.AddToEndByItemId(3087, new TimeSpan(20));
     var itemBlocks = timeline.TryToSplitIntoPurchases(15);
     Assert.AreEqual(1, itemBlocks.Count);
     Assert.AreEqual("First Purchase", itemBlocks[0].Name);
 }