Pro tip: want to improve your C# code coverage? Use ArgumentNullException.ThrowIfNull(), cancellationToken.ThrowIfCancellationRequested() and HttpResponseMessage.EnsureSuccessStatusCode() ! Hide those logical branches from the code coverage police! 😎Only half joking.

Comments