public void GenerateMatrix_1() { var solution = new _059_SpiralMatrix2(); var result = solution.GenerateMatrix(1); AssertHelper.AssertMatrix(new int[, ] { { 1 } }, result); }
public void GenerateMatrix_1() { var solution = new _059_SpiralMatrix2(); var result = solution.GenerateMatrix(1); AssertHelper.AssertMatrix(new int[,] { { 1 } }, result); }
public void GenerateMatrix_3() { var solution = new _059_SpiralMatrix2(); var result = solution.GenerateMatrix(3); AssertHelper.AssertMatrix(new int[, ] { { 1, 2, 3 }, { 8, 9, 4 }, { 7, 6, 5 } }, result); }
public void GenerateMatrix_3() { var solution = new _059_SpiralMatrix2(); var result = solution.GenerateMatrix(3); AssertHelper.AssertMatrix(new int[,] { { 1, 2, 3 }, { 8, 9, 4 }, { 7, 6, 5 } }, result); }
public void GenerateMatrix_4() { var solution = new _059_SpiralMatrix2(); var result = solution.GenerateMatrix(4); AssertHelper.AssertMatrix(new int[, ] { { 1, 2, 3, 4 }, { 12, 13, 14, 5 }, { 11, 16, 15, 6 }, { 10, 9, 8, 7 } }, result); }
public void GenerateMatrix_4() { var solution = new _059_SpiralMatrix2(); var result = solution.GenerateMatrix(4); AssertHelper.AssertMatrix(new int[,] { { 1, 2, 3, 4 }, { 12, 13, 14, 5 }, { 11, 16, 15, 6 }, { 10, 9, 8, 7 } }, result); }