Пример #1
0
        public void CopyToTest()
        {
            var a  = new[] { new EClass(1), new EClass(2) };
            var l  = new EventedList <EClass>(a);
            var a2 = new EClass[2];

            l.CopyTo(a2, 0);
            Assert.That(a, Is.EquivalentTo(a));
        }
Пример #2
0
        public void CopyToTest1()
        {
            var a  = new[] { new EClass(1), new EClass(2) };
            var l  = new EventedList <EClass>(a);
            var a2 = new EClass[1];

            l.CopyTo(1, a2, 0, 1);
            Assert.That(a2[0], Is.EqualTo(a[1]));
        }