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

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes