public void TestAll() { int[,] aMatrix = MatrixOperations.CreateMatrix(30); int[,] bMatrix = MatrixOperations.CreateMatrix(30); int[][] prod1 = MatrixOperations.MatrixProductRow(aMatrix, bMatrix); int[][] prod2 = MatrixOperations.MatrixProductThreads(aMatrix, bMatrix); int[][] prod3 = MatrixOperations.MatrixProductThreads(aMatrix, bMatrix); Task <int[][]> prod4 = MatrixOperations.MatrixProductAsync(aMatrix, bMatrix, MatrixOperations.MatrixProductRow); Assert.IsTrue(MatrixOperations.AreEqual(prod2, prod1)); Assert.IsTrue(MatrixOperations.AreEqual(prod3, prod1)); Assert.IsTrue(MatrixOperations.AreEqual(prod2, prod3)); Assert.IsTrue(MatrixOperations.AreEqual(prod1, prod4.Result)); }