public void SplitNullStringTest() { string text = null; int parts = 3; var func = new Func <string[]>(() => (string[])stringExtensions.InvokeStaticExt("Split", new object[2] { text, parts })); Assert.ThrowsException <ArgumentNullException>(func); }