System.Tests.MissingMethodExceptionTests.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 MissingMethodException";
            var innerException = new Exception("Created inner exception");
            var exception = new MissingMethodException(message, innerException);
            Assert.Equal(message, exception.Message);
            Assert.Equal(COR_E_MISSINGMETHOD, exception.HResult);
            Assert.Same(innerException, exception.InnerException);
            Assert.Equal(innerException.HResult, exception.InnerException.HResult);
        }
#if netstandard17