public void LinkedListSingleLinkPartition2StableUseDummyNodesTest1NullList() { LinkedListSingleLinkNode <int> actual = null; LinkedListSingleLinkPartition2StableUseDummyNodesComplete.Partition(ref actual, 7); Assert.IsTrue(LinkedListSingleLinkNode <int> .Compare(null, actual)); }
public void LinkedListSingleLinkPartition2StableUseDummyNodesTest7AllBefore() { var actual = LinkedListSingleLinkNode <int> .CreateFromData(1, 2, 8, 7, 5, 3); var expected = LinkedListSingleLinkNode <int> .CreateFromData(1, 2, 8, 7, 5, 3); LinkedListSingleLinkPartition2StableUseDummyNodesComplete.Partition(ref actual, 9); Assert.IsTrue(LinkedListSingleLinkNode <int> .Compare(expected, actual)); }
public void LinkedListSingleLinkPartition2StableUseDummyNodesTest6SingleBeforeAfter() { var actual = LinkedListSingleLinkNode <int> .CreateFromData(3, 2, 1); var expected = LinkedListSingleLinkNode <int> .CreateFromData(1, 3, 2); LinkedListSingleLinkPartition2StableUseDummyNodesComplete.Partition(ref actual, 2); Assert.IsTrue(LinkedListSingleLinkNode <int> .Compare(expected, actual)); }