关于[Never use the same value for two IDs (or other values) in your tests]的摘要:
When you’re writing automated tests, whether you’re following TDD or not, you want to avoid the possibility of testing the wrong thing. This is surprisingly easy to do if you’re not careful, I can say from personal experience! One way this can easily happen is if you’re quickly writing a series of tests, and doing so using copy-paste programming, like you might see here...
原文地址: https://ardalis.com/never-use-the-same-value-for-two-ids-or-other-values-in-your-tests