コード例 #1
0
        private static void ValidateResult <T>(T x, Node <T> list, params T[] expectedResult)
            where T : IEquatable <T>, IComparable <T>
        {
            var result = Question2_4.PartitionList(list, x);

            ListHelpers.ValidateLinkedListContent(result, expectedResult);
        }
コード例 #2
0
 public void InvalidInputsTest()
 {
     // Null node
     TestHelpers.AssertExceptionThrown(() => { Question2_4.PartitionList(null, 3); }, typeof(ArgumentNullException));
 }