public void TestRecordList() { var head = MyLinkList.BuildListNodeFromArray(new[] { 1, 2, 3, 4, 5, 6, 7 }); RecordList.Record(head); Assert.AreEqual(head.Next.Next.Val, 7); Assert.AreEqual(head.Next.Next.Next.Next.Val, 6); Assert.AreEqual(head.Next.Next.Next.Next.Next.Next.Val, 5); Assert.AreEqual(head.Next.Next.Next.Next.Next.Next.Next.Val, 4); }