public void AfterInitializationTwoMatricesShouldHaveDifferentShuffledNumbers() { IMatrix matrixOne = new Game.Models.Matrix.Matrix(5, 5); matrixOne.InitializeMatrix(); IMatrix matrixTwo = new Game.Models.Matrix.Matrix(5, 5); matrixTwo.InitializeMatrix(); bool areSame = true; for (int i = 0; i < matrixOne.Width; i++) { if (matrixOne.Field[i, 0] != matrixTwo.Field[i, 0]) { areSame = false; } } Assert.IsFalse(areSame); }
public void ShuffleMatrixShouldShuffleMatrix() { IMatrix matrix = new Game.Models.Matrix.Matrix(4, 4); matrix.InitializeMatrix(); bool areSame = true; for (int i = 0; i < matrix.Width; i++) { var expect = i + 1; if (matrix.Field[0, i] != expect.ToString()) { areSame = false; } } Assert.IsFalse(areSame); }