public void Test(int[,] input, int[,] expectedArray, int expectedSum) { MatrixHandler m = new MatrixHandler(); var resp = m.GetMax2x2Matrix(input); resp.Item1.Should().Be(expectedSum); resp.Item2.Should().BeEquivalentTo(expectedArray); }
public void SetMatrixHandler(MatrixHandler matrixHandler) { this._matrixHandler = matrixHandler; Flush(); if (matrixHandler == null) { _graphicsDevice.Viewport = _viewPort; } else { _graphicsDevice.Viewport = _matrixHandler.ViewPort; } }
/*public void OptimalP1() * { * panel.GetComponent<MatrixHandler> ().OptimalP1 (GetMatrix ()); * if (allNums) * anim.SetTrigger ("NextScreen"); * } * * public void OptimalP2() * { * panel.GetComponent<MatrixHandler> ().OptimalP2 (GetMatrix ()); * if (allNums) * anim.SetTrigger ("NextScreen"); * }*/ public void Optimal(bool isP1) { MatrixHandler mh = panel.GetComponent <MatrixHandler> (); if (isP1) { mh.OptimalP1(GetMatrix()); } else { mh.OptimalP2(GetMatrix()); } if (allNums) { anim.SetTrigger("NextScreen"); } }
public void SetMatrixHandler(MatrixHandler matrixHandler) { this._matrixHandler = matrixHandler; Flush(); if (matrixHandler == null) _graphicsDevice.Viewport = _viewPort; else _graphicsDevice.Viewport = _matrixHandler.ViewPort; }