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