コード例 #1
0
        public void ContainsAnyTestNullCheck()
        {
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => IEnumerableTEx.ContainsAny(null, new Object(), new Object());

            Assert.Throws <ArgumentNullException>(test);
        }
コード例 #2
0
        public void ContainsAnyTest1NullCheck()
        {
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            // ReSharper disable once AssignNullToNotNullAttribute
            Action test = () => IEnumerableTEx.ContainsAny(null, new List <Object>());

            test.ShouldThrow <ArgumentNullException>();
        }