public void GetBetweenTestNullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.GetBetween(null, "", ""); Assert.Throws <ArgumentNullException>(test); }
public void GetBetweenCharTestNullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.GetBetween(null, 't', 't'); test.ShouldThrow <ArgumentNullException>(); }