NSubstitute - make async method (Task) throw an exception
The other day I was writing a unit test to verify what was supposed to happen when a Task would throw an exception when awaited. It wasn't as straight forward as I first assumed, but I quickly found this Stack Overflow post that helped me: NSubstitute - mock throwing an…