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)); }
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)); }