Thomas Levesque 11/19/2019

Easy unit testing of null argument validation (C# 8 edition)

Read Original

This technical article explains how to improve automated unit testing for null argument validation in C#. It updates an older helper method to leverage C# 8's nullable reference type metadata, automatically detecting non-nullable parameters to eliminate the need for manually specifying parameter names in tests.

Easy unit testing of null argument validation (C# 8 edition)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week