public void ExtractFirstInt32TestNullCheck1() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.ExtractFirstInt32(null, 1); test.ShouldThrow <ArgumentNullException>(); }