public void FTest3NullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.F(null, new Object(), new Object(), new Object(), new Object()); test.ShouldThrow <ArgumentNullException>(); }
public void FTest4NullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.F(null, CultureInfo.InvariantCulture, new Object(), new Object(), new Object(), new Object()); Assert.Throws <ArgumentNullException>(test); }