public void AddingMatrix() { double[,] a = { { 2, 3 }, { 4, 2 } }; double[,] pom = { { 4, 6 }, { 8, 4 } }; double[,] r = mo.AddMatrix(a, a); for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { Assert.AreEqual(pom[i, j], r[i, j]); } } }
public void AddingMatrix() { double[,] a = { { 2, 3 }, { 4, 2 } }; double[,] pom = { { 4, 6 }, { 8, 4 } }; double[,] r = mo.AddMatrix(a, a); for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { Assert.AreEqual(pom[i, j], r[i, j]); } } }