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);
}