This code is an academic example,. I was trying to write something easy because the domain is not important, but the principles and best practices.
In this code, I have a class - Table. It has a private array (of objects Cell), which is used by many public functions in the code. BUT but there is no function that will return a particular cell. So the problem I have, is how can I test the Reset function? I can call this function, but I can't review its result. Specially especially with the Option 2 where I don't have any references to this Arrayarray.
That makesgot me thinking if the design is correct.. and that lead me here.