Beispiel #1
0
        public void CopyTo_CopiesAllItems_ToArray_ForThree()
        {
            var array = new int[3];

            _threeMash.CopyTo(array, 0);
            TestHelper.AssertSequence(array, 1, 2, 3);
        }
Beispiel #2
0
        public void CopyTo_CopiesAllItems_ToArray_ForOne()
        {
            var array = new int[1];

            _oneMash.CopyTo(array, 0);
            TestHelper.AssertSequence(array, 1);
        }
Beispiel #3
0
        public void CopyTo_CopiesAllItems_ToArray_ForTwo()
        {
            var array = new int[2];

            _twoMash.CopyTo(array, 0);
            TestHelper.AssertSequence(array, 1, 2);
        }
Beispiel #4
0
        public void CopyTo_DoesNothing_ForEmpty()
        {
            var array = new int[1];

            _emptyMash.CopyTo(array, 0);

            Assert.AreEqual(0, array[0]);
        }