public static void NewArgumentNullExceptionStringTest( [Values(null, "", "param")] string paramName ) { Assert.That(ExceptionUtilities.NewArgumentNullException(paramName), Is.InstanceOf <ArgumentNullException>() .With.Property("ParamName").EqualTo(paramName) ); }