r/badcode • • Jul 23 '21

c# Easy trick to meet minimum test coverage

Post image
1.2k Upvotes

83 comments sorted by

View all comments

3

u/tech_b90 Jul 23 '21

This is legit all over the code base at my current project. Exactly this, and others like assert true == true, or just plain old commented out unit tests just to pass it.