public void ValidateInternalPositionArray_WithSwapedMiddleRAndG_ShouldThrowException() { //Arrange var cube = new Cube.Model.Impl.Cube(); CubeColor[, ,] testInternalArray = BuildInternalArrayForSolution(); //Swap middle R and G testInternalArray[2, 1, 1] = CubeColor.G; testInternalArray[3, 1, 1] = CubeColor.R; //Act cube.ValidateInternalPositionArray(testInternalArray); //Assert is implisit }
public void ValidateInternalPositionArray_WithToManyRAndToFewY_ShouldThrowException() { //Arrange var cube = new Cube.Model.Impl.Cube(); CubeColor[, ,] testInternalArray = BuildInternalArrayForSolution(); //One additional R and one missing Y testInternalArray[0, 0, 0] = CubeColor.R; //Act cube.ValidateInternalPositionArray(testInternalArray); //Assert is implisit }
public void ValidateInternalPositionArray_WithSolution_ShouldNotThrowExcetion() { //Arrange var cube = new Cube.Model.Impl.Cube(); CubeColor[, ,] testInternalArray = BuildInternalArrayForSolution(); //Act cube.ValidateInternalPositionArray(testInternalArray); //Assert is implisit }