I would suggest to use a try-catch block and to verify in the catch part the thrown exception using assert statement.
確定! 回上一頁