Coverage of auto-implemented properties with dotCover
Published On April 19, 2013
Since I am using dotCover I wondered why every method call is covered properly by tests (if conveniently
tested) but the auto-implemented properties are always displayed as “not covered at all”. Let’s take the
following ugly tests :
Now let’s look @ their implementations. For StartDate attribute, I used “old fashioned” way and for
the EndDate, I used automatic properties.
When I run the tests and asked to see the coverage, I have the following results :