public void ExtractAllInt16TestNullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.ExtractAllInt16(null); Assert.Throws <ArgumentNullException>(test); }