public static void From_HR()
{
int hr = HResults.COR_E_PATHTOOLONG;
PathTooLongException exception = Assert.IsAssignableFrom<PathTooLongException>(Marshal.GetExceptionForHR(hr, new IntPtr(-1)));
ExceptionUtility.ValidateExceptionProperties(exception, hResult: hr, validateMessage: false);
}
}