System.Tests.TypeUnloadedExceptionTests.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 TypeUnloadedException ";
            var innerException = new Exception("Created inner exception");
            var exception = new TypeUnloadedException(message, innerException);
            Assert.Equal(message, exception.Message);
            Assert.Equal(COR_E_TYPEUNLOADED, exception.HResult);
            Assert.Same(innerException, exception.InnerException);
            Assert.Equal(innerException.HResult, exception.InnerException.HResult);
        }
    }