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>(); }