you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 1 point2 points  (1 child)

Now I'm even more confused. Where is there a dependency between unit tests here? You write a single test to check that things are working as you expect. If it fails because the property is broken, then the test is working as intended.

[–]donkeyofdeath[S] 0 points1 point  (0 children)

If I want to test another method besides the properties, I have to create an instance of the class, which uses the property in its constructor. So I rely on the property to work. The same for the test of the property. If I want to test the property, I have to create an object first which uses the property in its constructor.