System.Tests.BadImageFormatExceptionTests.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 = "this is not the file you're looking for";
            var innerException = new Exception("Inner exception");
            var exception = new BadImageFormatException(message, innerException);
            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_BADIMAGEFORMAT, innerException: innerException, message: message);
            Assert.Equal(null, exception.FileName);
        }