public void InvalidInputsTest()
        {
            var head = new Node <int>(1);

            TestHelpers.AssertExceptionThrown(() => Question2_7.FindIntersection(null, head), typeof(ArgumentNullException));
            TestHelpers.AssertExceptionThrown(() => Question2_7.FindIntersection(head, null), typeof(ArgumentNullException));
            TestHelpers.AssertExceptionThrown(() => Question2_7.FindIntersection <int>(null, null), typeof(ArgumentNullException));
        }
 private static void Validate <T>(Node <T> list1, Node <T> list2, Node <T> intersection)
     where T : IEquatable <T>
 {
     Assert.IsTrue(ReferenceEquals(intersection, Question2_7.FindIntersection(list1, list2)));
 }