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