public void SetUp() { this.collection = CommentCollection.GetInstance(0, 12345, 0, false, true); var com1 = new Response::Comment() { Chat = new Response::Chat() { Content = "One", No = 1, Thread = "12345", } }; var com2 = new Response::Comment() { Chat = new Response::Chat() { Content = "One", No = 2, Thread = "12345", } }; var com3 = new Response::Comment() { Chat = new Response::Chat() { Content = "Two", No = 3, Thread = "12345", } }; var com4 = new Response::Comment() { Chat = new Response::Chat() { Content = "Three", No = 4, Thread = "12345", } }; var com5 = new Response::Comment() { Chat = new Response::Chat() { Content = "Four", No = 5, Thread = "12346", } }; var thread = new Response::Comment() { Thread = new Response::Thread() { ThreadThread = "12345", LastRes = (int)new DateTimeOffset(DateTime.Now.Ticks, new TimeSpan(9, 0, 0)).ToUnixTimeSeconds() } }; this.collection.Add(new List <Response::Comment>() { com1, com2, com3, com4, com5, thread }); }