System.Tests.BadImageFormatExceptionTests.Ctor_String C# (CSharp) Метод

Ctor_String() приватный Метод

private Ctor_String ( ) : void
Результат void
        public static void Ctor_String()
        {
            string message = "this is not the file you're looking for";
            var exception = new BadImageFormatException(message);
            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_BADIMAGEFORMAT, message: message);
            Assert.Null(exception.FileName);
        }