public static void Ctor_Empty()
        {
            var exception = new KeyNotFoundException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_KEYNOTFOUND, validateMessage: false);
        }
示例#2
0
        public static void Ctor_Empty()
        {
            var exception = new DivideByZeroException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_DIVIDEBYZERO, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new IndexOutOfRangeException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_INDEXOUTOFRANGE, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new OutOfMemoryException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_OUTOFMEMORY, validateMessage: false);
        }
示例#5
0
        public static void Ctor_Empty()
        {
            var exception = new Exception();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_EXCEPTION, validateMessage: false);
        }
示例#6
0
        public static void Ctor_Empty()
        {
            var exception = new ArrayTypeMismatchException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_ARRAYTYPEMISMATCH, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new NotSupportedException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new InvalidProgramException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_INVALIDPROGRAM, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new NotImplementedException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: E_NOTIMPL, validateMessage: false);
        }
示例#10
0
        public static void Ctor_Empty()
        {
            var exception = new SecurityException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_SECURITY, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new OverflowException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_OVERFLOW, validateMessage: false);
        }
示例#12
0
        public static void Ctor_Empty()
        {
            var exception = new ArithmeticException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_ARITHMETIC, validateMessage: false);
        }
示例#13
0
        public static void Ctor_Empty()
        {
            var exception = new InvalidOperationException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_INVALIDOPERATION, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new TimeoutException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_TIMEOUT, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new FormatException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_FORMAT, validateMessage: false);
        }
        public static void Ctor_Empty()
        {
            var exception = new MemberAccessException();

            ExceptionUtility.ValidateExceptionProperties(exception, hResult: COR_E_MEMBERACCESS, validateMessage: false);
        }