Good day.
I'm just starting to understand unit testing, and I have a question about creating unit tests.
The question is more on logic, I guess.
I will have 4 methods:
- Loading the matrix from the file into the two-dimensional array
GetMatrix(string filename)
; - The method by which the matrix is rotated 90 degrees -
void RotateMatrix()
; - Matrix output method on the screen -
void ToScreen()
; - Saving matrix to file.
I need to write 2 unit tests in this project.
Question: how best to implement tests? What logic to use? What to check?
Thank!