public void Test2() { MatrixMedian mm = new MatrixMedian() { Matrix = new int[, ] { { 1, 2, 3, 4, 5, 7 } } }; Assert.AreEqual(3.5, mm.SolveLog()); }
public void Test3() { MatrixMedian mm = new MatrixMedian() { Matrix = new int[, ] { { 1, 2, 3, 4, 5, 7 }, { 2, 3, 5, 10, 11, 12 } } }; Assert.AreEqual(4.5, mm.SolveLog()); }
public void Test4() { MatrixMedian mm = new MatrixMedian() { Matrix = new int[, ] { { 1, 2, 3, 4, 5 }, { 2, 3, 5, 10, 11 }, { 2, 3, 5, 10, 11 }, } }; Assert.AreEqual(4, mm.SolveLog()); }