public void GetMiddleNode_ThrowsError_ForKnottedList() { var head = new LinkedListNode <int>(1); head.Next = head; Assert.Throws <InvalidOperationException>(() => head.GetMiddleNode()); }
public void GetMiddleNode_ThrowsError_ForKnottedList() { var head = new LinkedListNode <int>(1); head.Next = head; Assert.Throws <InvalidOperationException>(() => head.GetMiddleNode()); }