示例#1
0
        public void ContainsAnyTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.ContainsAny(null, "");

            Assert.Throws <ArgumentNullException>(test);
        }
        public void ContainsAnyTest1NullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.ContainsAny(null, StringComparison.CurrentCulture, "");

            test.ShouldThrow <ArgumentNullException>();
        }