public void NullSource() { IQueryable<string> source = null; Assert.Throws<ArgumentNullException>("source", () => source.Distinct()); }