TahaA
✅ where constraint on interface method
That's what I thought, too. That's why I didn't do it on the endterm, took my 1.3 points out of 2, so I missed 0.7 because of that. Seems like some teacher made the exam without either checking it himself or let another check. Too condfident in their code and not doing their job right.
22 replies
Is implementing ICloneable in unittests worthless?
It is likely that no one will read this anymore, but that makes it all the more funnier.
So the reason Deepcloning didn't work was because I was working in a Mock environment. I was mocking File I/O but instead of loading the mocked file I was loading the original file, which means I was returning the same objects, so I was changing the same returned object as well 😭
2 replies