System.Tests.ExecutionEngineExceptionTests.Ctor_String_Exception C# (CSharp) Method

Ctor_String_Exception() private method

private Ctor_String_Exception ( ) : void
return void
        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);
        }
    }