public static void Ctor_String_String_Exception()
{
string message = "this is not the file you're looking for";
string fileName = "file.txt";
var innerException = new Exception("Inner exception");
var exception = new BadImageFormatException(message, fileName, innerException);
ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_BADIMAGEFORMAT, innerException: innerException, message: message);
Assert.Equal(fileName, exception.FileName);
}