Exemple #1
0
        public void InputEmpty()
        {
            IReadOnlyList <int> list = new int[] { };

            new Action(
                () => FastLinq.First(list))
            .Should()
            .Throw <InvalidOperationException>();
        }
Exemple #2
0
        public void InputNull()
        {
            IReadOnlyList <int> list = null;

            new Action(
                () => FastLinq.First(list))
            .Should()
            .Throw <ArgumentNullException>();
        }
Exemple #3
0
 public void Array_FastLinq()
 {
     var _ = FastLinq.First(this.array);
 }
Exemple #4
0
        public void NominalCase()
        {
            IReadOnlyList <int> list = new[] { 1, 2, 3 };

            Assert.AreEqual(1, FastLinq.First(list));
        }
Exemple #5
0
 public void List_FastLinq()
 {
     var _ = FastLinq.First(this.list);
 }