System.Tests.BadImageFormatExceptionTests.Ctor_String_String C# (CSharp) Method

Ctor_String_String() private method

private Ctor_String_String ( ) : void
return void
        public static void Ctor_String_String()
        {
            string message = "this is not the file you're looking for";
            string fileName = "file.txt";
            var exception = new BadImageFormatException(message, fileName);
            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_BADIMAGEFORMAT, message: message);
            Assert.Equal(fileName, exception.FileName);
        }