Unit Testing in C# with FluentAssertions
Unit testing should be an essential part of your SDLC, especially when you have multiple contributors to a project. It’s a great way to ensure that your code is still returning the appropriate responses, even after someone else (who might have a different context than you) has tinkered with it.
Don’t get me wrong, writing unit tests can be an exercise in tedium but it has saved my behind more times than I care to admit. There are tools to make things a bit easier though and I’ll go through a couple of them over the next few posts and end with a bit of a secret weapon (hint: it’s ChatGPT).