public void FastLinq_SecondToLastItemArray()
 {
     int _ = FastLinq.FirstOrDefault(
         FastLinq.Skip(
             FastLinq.Reverse(this.intArray),
             1));
 }
Beispiel #2
0
        public void InputNull()
        {
            IReadOnlyList <int> list = null;

            new Action(
                () => FastLinq.FirstOrDefault(list))
            .Should()
            .Throw <ArgumentNullException>();
        }
Beispiel #3
0
        public void InputEmpty()
        {
            IReadOnlyList <int> list = new int[] { };

            Assert.AreEqual(default(int), FastLinq.FirstOrDefault(list));
        }
Beispiel #4
0
        public void NominalCase()
        {
            IReadOnlyList <int> list = new[] { 1, 2, 3 };

            Assert.AreEqual(1, FastLinq.FirstOrDefault(list));
        }
 public void Array_FastLinq()
 {
     var _ = FastLinq.FirstOrDefault(this.array);
 }
 public void List_FastLinq()
 {
     var _ = FastLinq.FirstOrDefault(this.list);
 }