Testing Async Code in C#: What's Changed

Back in 2015 I wrote a post on unit testing events and callbacks in C# . It covered a real problem: how do you test something that doesn&rsquo;t return a value, but eventually fires a callback or raises an event? &#xA; 11 years later, I&rsquo;m fiddling with a little project at home that uses lots of programming languages, and I&rsquo;m cringing at some of the things I wrote back than. In…