public static void Ctor_String_Exception() { string message = "Created EntryPointNotFoundException"; var innerException = new Exception("Created inner exception"); var exception = new EntryPointNotFoundException(message, innerException); Assert.Equal(message, exception.Message); Assert.Equal(exception.GetBaseException().Message, "Created inner exception"); Assert.Equal(COR_E_ENTRYPOINTNOTFOUND, exception.HResult); Assert.Equal(innerException, exception.InnerException); Assert.Equal(innerException.HResult, exception.InnerException.HResult); }