예제 #1
0
        public void Apply_throws_ArgumentNullException()
        {
            IEnumerable enumeration = new[] { "a", "b", "c" };

            void action(object _)
            {
            }

            Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.Apply((IEnumerable)null, action).Iterate());
            Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.Apply(enumeration, (Action <object>)null).Iterate());
        }