Ejemplo n.º 1
0
        public void TestSumNumberEmpty()
        {
            var vector        = new MathVector(new List <double>());
            var assumedVector = new MathVector(new List <double>());

            var resultVector = (MathVector)vector.SumNumber(1);

            Assert.IsTrue(assumedVector.Equals(resultVector));
        }
Ejemplo n.º 2
0
        public void TestSumNumberMultiple()
        {
            var vector = new MathVector(new List <double>()
            {
                1,
                2,
                4,
                0
            });
            var assumedVector = new MathVector(new List <double>()
            {
                3,
                4,
                6,
                2
            });

            var resultVector = (MathVector)vector.SumNumber(2);

            Assert.IsTrue(assumedVector.Equals(resultVector));
        }