System.Reflection.Tests.ExceptionTests.TargetException C# (CSharp) Метод

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

private TargetException ( ) : void
Результат void
        public static void TargetException()
        {
            TargetException ex = new TargetException();

            Assert.NotEmpty(ex.Message);
            Assert.Null(ex.InnerException);

            TargetException caught = Assert.Throws<TargetException>(() => ThrowGivenException(ex));
            Assert.Same(ex, caught);
        }