public void Prepend()
        {
            var source = new[] {2, 3, 4};
            var expected = new[] {1, 2, 3, 4};

            CollectionAssert.AreEqual(
                expected, source.Prepend(1).ToArray());
        }
Beispiel #2
0
 public void PrependTest()
 {
     var ints = new[] { 1, 2, 3 };
     var zeroToThree = ints.Prepend(0);
     CollectionAssert.AreEqual(new[] { 0, 1, 2, 3 }, zeroToThree.ToArray());
 }