public void GetPositionGivenAngleArrayReturnsValidPosition(double[] anglesArray, double[] expectedPosition) { // Arrange var angles = Vector <double> .Build.DenseOfArray(anglesArray); // Act var result = MatrixOperations.GetPosition(angles); // Assert var expected = Vector <double> .Build.DenseOfArray(expectedPosition); var subtract = expected.Subtract(result); Assert.IsTrue(subtract.L2Norm() < 0.01); }