public void NullSelector() { Expression<Func<StringWithIntArray, IEnumerable<int>>> selector = null; Assert.Throws<ArgumentNullException>("selector", () => new StringWithIntArray[0].AsQueryable().SelectMany(selector)); }