Stephan van Hulst wrote:Don't write test code inside the code under test.
Test methods should be in a separate class in a separate source directory, and the class should only have a default or parameterless constructor. Here is an example:
I see. Thank you for your teaching. Perhaps I really have to get a book about JUnit rather than see example here and there and try things out.
Could you let me know is there any special reason you are using var instead of my example which I followed in the book ?
Because I also tried to change to var but it is giving me error...so just want to know, just in case it is something I am not aware.
Again. Thanks.