public void PartialSortWithNullSequence() { Assert.ThrowsArgumentNullException("source", () => MoreEnumerable.PartialSort <object>(null, 0)); Assert.ThrowsArgumentNullException("source", () => MoreEnumerable.PartialSort(null, 0, Comparer <object> .Default)); }
public void PartialSortWithNullSequence() { Assert.AreEqual("source", Assert.Throws <ArgumentNullException>(() => MoreEnumerable.PartialSort <object>(null, 0)).ParamName); Assert.AreEqual("source", Assert.Throws <ArgumentNullException>(() => MoreEnumerable.PartialSort(null, 0, Comparer <object> .Default)).ParamName); }