コード例 #1
0
 public static void TestFindAll <T, TCollection, TPredicate>(
     List2D <T> list, TPredicate match, TCollection expected)
     where TCollection : ICollection <T>, new()
     where TPredicate : struct, IPredicate <T>
 => CollectionAssert.AreEqual(
     expected, list.FindAll <TCollection, TPredicate>(match));
コード例 #2
0
 public static void TestFindAll <T, TCollection>(
     List2D <T> list, Predicate <T> match, TCollection expected)
     where TCollection : ICollection <T>, new()
 => CollectionAssert.AreEqual(expected, list.FindAll <TCollection>(match));