<PackageReference Include="NUnit" Version="4.2.2" />

NUnit.Framework.Internal.ExceptionHelper

public static class ExceptionHelper
ExceptionHelper provides static methods for working with exceptions
namespace NUnit.Framework.Internal { public static class ExceptionHelper { public static void Rethrow(Exception exception); public static string BuildMessage(Exception exception, bool excludeExceptionNames = false); public static string BuildStackTrace(Exception exception); public static Exception Unwrap(this Exception exception); } }