Esempio n. 1
0
        public void ExistsT_should_be_callable_indirectly()
        {
            using (new IndirectionsContext())
            {
                // Arrange
                PArray.ExistsOfTTArrayPredicateOfT <int>().Body = (array, match) => true;

                // Act
                var actual = Array.Exists(new int[] { 1, 2, 3 }, x => x == 42);

                // Assert
                Assert.IsTrue(actual);
            }
        }