public void UMult() { Vector vector = new Vector(new double[] { 1, 1, 1 }); var resultFalseDiag = skylineMatrix.UMult(vector, false); Vector resultActualFalseDiag = new Vector(new double[] { 6, 2, 1 }); var resultTrueDiag = skylineMatrix.UMult(vector, true); Vector resultActualTrueDiag = new Vector(new double[] { 6, 3, 3 }); for (int i = 0; i < resultFalseDiag.Size; i++) { Assert.Equal(resultFalseDiag[i], resultActualFalseDiag[i], 8); Assert.Equal(resultTrueDiag[i], resultActualTrueDiag[i], 8); } }