public void GenericClearTest1() { // ReSharper disable once AssignNullToNotNullAttribute Action test = () => ArrayEx.Clear <String>(null, 0, 2); Assert.Throws <ArgumentNullException>(test); }