Don't duplicate logic in Asserts: The most common mistake on unit testing

from blog Just Some Code, | ↗ original
We have covered some common mistakes when writing unit tests. Some of them may seem obvious. But, we all have made this mistake when we started to write unit tests. This is the most common mistake when writing unit tests and how to fix it. Don’t repeat the logic under test when verifying the expected result of tests. Instead, use known,...