MrKWatkins.Assertions 0.0.21 Help

ActionAssertions.Throw Method

Overloads

Throw<TException>()

public ActionAssertionsChain<TException> Throw<TException>() where TException : Exception;

Type Parameters

Name

Description

TException

Returns

ActionAssertionsChain<TException>

Throw<TException>(String)

public ActionAssertionsChain<TException> Throw<TException>(string expectedMessage) where TException : Exception;

Type Parameters

Name

Description

TException

Parameters

Name

Type

Description

expectedMessage

String

Returns

ActionAssertionsChain<TException>

Throw<TException>(String, Exception)

public ActionAssertionsChain<TException> Throw<TException>(string expectedMessage, Exception? expectedInnerException) where TException : Exception;

Type Parameters

Name

Description

TException

Parameters

Name

Type

Description

expectedMessage

String

expectedInnerException

Exception

Returns

ActionAssertionsChain<TException>

Throw<TException>(TException)

public ActionAssertionsChain<TException> Throw<TException>(TException expected) where TException : Exception;

Type Parameters

Name

Description

TException

Parameters

Name

Type

Description

expected

TException

Returns

ActionAssertionsChain<TException>

Last modified: 29 January 2025