Beispiel #1
0
        public void ICollection()
        {
            var a = new ComplexFloatVector(new ComplexFloat[4] {
                0, 1, 2, 3
            });
            var b = new ComplexFloat[5];

            Assert.AreEqual(a.Count, a.Length);

            a.CopyTo(b, 1);
            Assert.AreEqual(b[0], (ComplexFloat)0);
            Assert.AreEqual(b[1], (ComplexFloat)0);
            Assert.AreEqual(b[2], (ComplexFloat)1);
            Assert.AreEqual(b[3], (ComplexFloat)2);
            Assert.AreEqual(b[4], (ComplexFloat)3);
        }