Exemple #1
0
        public void TestNegateEmpty()
        {
            var vector        = new MathVector(new List <double>());
            var assumedVector = new MathVector(new List <double>());

            var resultVector = (MathVector)vector.Negate();

            Assert.IsTrue(assumedVector.Equals(resultVector));
        }
Exemple #2
0
        public void TestNegateMultiple()
        {
            var vector = new MathVector(new List <double>()
            {
                1,
                2,
                4,
                0
            });
            var assumedVector = new MathVector(new List <double>()
            {
                -1,
                -2,
                -4,
                0
            });

            var resultVector = (MathVector)vector.Negate();

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