public static void Find() { var distributedArray = new BigArray <int> { 1, 2, 3, 4 }; Assert.AreEqual(distributedArray.Find(IsEqual0), 0); Assert.AreEqual(distributedArray.Find(IsEqual2), 2); var emptyArray = new BigArray <int>(); Assert.AreEqual(emptyArray.Find(IsEqual0), 0); //Exceptions ExceptionManager.IsThrowFuncException <ArgumentNullException, Predicate <int>, int> (distributedArray.Find, null); }