Пример #1
0
        public void PartialSortWithNullSequence()
        {
            Assert.ThrowsArgumentNullException("source", () =>
                                               MoreEnumerable.PartialSort <object>(null, 0));

            Assert.ThrowsArgumentNullException("source", () =>
                                               MoreEnumerable.PartialSort(null, 0, Comparer <object> .Default));
        }
Пример #2
0
 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);
 }