2 ms·
A test should have as many assertions as needed to test an interface. If you find you’re needing a lot of assertions to do that then I suspect either the interf
by 0x445442 4y ago
A test should have as many assertions as needed to test an interface. If you find you’re needing a lot of assertions to do that then I suspect either the interface under test is too large or you’re testing multiple stack frames. In my experience, it’s usually the latter; I call it accidental testing. Those delegate calls should have their own tests.