Library/Library.Test/TestLinkList.cs
C# | Copy Code |
---|---|
LListNode<string>.LList list = new LListNode<string>.LList(); Assert.IsTrue(list.IsEmpty); list.AddLast("B"); Assert.IsFalse(list.IsEmpty); list.AddFirst("A"); Assert.AreEqual("A", list.First.Value); Assert.AreEqual("B", list.Last.Value); |
VB.NET | Copy Code |
---|---|
Dim list As New LListNode(Of String).LList() Assert.IsTrue(list.IsEmpty) list.AddLast("B") Assert.IsFalse(list.IsEmpty) list.AddFirst("A") Assert.AreEqual("A", list.First.Value) Assert.AreEqual("B", list.Last.Value) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7