Beispiel #1
0
        public void FromEmptyCollectionTest()
        {
            var target = new List <int>();
            var actual = ArrayProvider.ToArray(target);

            Assert.Equal(0, actual.Length);
        }
Beispiel #2
0
        public void FromCollectionTest()
        {
            var target = new List <int> {
                1, 2, 3
            };
            var actual = ArrayProvider.ToArray(target);

            Assert.Equal(3, actual.Length);
            Assert.True(target.SequenceEqual(actual));
        }