Exemplo n.º 1
0
        public void InputEmpty()
        {
            IReadOnlyList <int> list = new int[] { };

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

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

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