public void GetAfterTestNullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.GetAfter(null, "test"); Assert.Throws <ArgumentNullException>(test); }
public void GetAfterTest1NullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.GetAfter(null, "", 1, 1); test.ShouldThrow <ArgumentNullException>(); }