public static void Ctor_String_Exception()
{
string message = "Created ExecutionEngineException";
var innerException = new Exception("Created inner exception");
#pragma warning disable 0618
var exception = new ExecutionEngineException(message, innerException);
#pragma warning restore 0618
Assert.Equal(message, exception.Message);
Assert.Equal(COR_E_EXECUTIONENGINE, exception.HResult);
Assert.Equal(innerException, exception.InnerException);
Assert.Equal(innerException.HResult, exception.InnerException.HResult);
}
}