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