private static void Validate <T>(Node <T> head, Node <T> loopStart) where T : IEquatable <T> { Assert.AreEqual(loopStart, Question2_8.FindLoopStart(head)); }
public void InvalidInputTest() { TestHelpers.AssertExceptionThrown(() => Question2_8.FindLoopStart <int>(null), typeof(ArgumentNullException)); }