/// <inheritdoc/> protected override void HandleCheckException(MethodBase testOrigin, ParameterInfo testParam, Exception taskException) { if (testOrigin == null) { throw new ArgumentNullException(nameof(testOrigin)); } if (testParam == null) { throw new ArgumentNullException(nameof(testParam)); } if (taskException == null) { throw new ArgumentNullException(nameof(taskException)); } string details = $"on method '{testOrigin.Name}' with parameter '{testParam.Name}'"; if (taskException is ArgumentNullException inner && testOrigin.Name == inner.TargetSite.Name) { _asserter.Is(testParam.Name, inner.ParamName, $"Incorrect name provided for exception {details}."); }