Skip to content

Commit ac7ee24

Browse files
author
Artyom Yanchevsky
committed
Add overridden method without message for AssertThrows
DEVSIX-5329
1 parent 61c40b3 commit ac7ee24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

itext/itext.pdftest/itext/test/AssertUtil.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ namespace iText.Test {
4848

4949
public class AssertUtil {
5050

51+
public static void AssertThrows(Type expectedThrowable, TestDelegate runnable)
52+
{
53+
Assert.That(runnable, Throws.InstanceOf(expectedThrowable));
54+
}
55+
5156
public static void AssertThrows(string message, Type expectedThrowable, TestDelegate runnable)
5257
{
5358
Assert.That(runnable, Throws.InstanceOf(expectedThrowable).With.Message.EqualTo(message));

0 commit comments

Comments
 (0)