public void BoardCreation_ValidSettings_ReturnValueMatchesExpectedValue(int boardSize, Frame[,] expectedResult) { // arrange FrameCreator frameCreator = new TextFrameCreator(); // act Frame[,] testResult = frameCreator.CreateBoard(boardSize); // assert Assert.IsTrue(BoardComparer.AreBoardsEqual(testResult, expectedResult)); }
public void BoardCreation_BoardSize_SizeOfReturnedArrayMatchesInputSize([Range(3, 9)] int boardSize) { // arrange FrameCreator frameCreator = new TextFrameCreator(); // act Frame[,] testResult = frameCreator.CreateBoard(boardSize); // assert Assert.IsTrue(testResult.GetLength(0) == boardSize); Assert.IsTrue(testResult.GetLength(1) == boardSize); }