Surely constructor is not called once, but n times if they are n tests. You expect one shared instance, but in reality, there are n instances.
That makes sense, since for the testReadVariable()
, variables are not set in there, so you end up with default values that are 0
and 0
.
Test should be independent, and you expect them to be dependent...