Interface
IThrows<TContainer>

Throws() methods.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Type Parameters:

TContainer

Syntax:

cs-api-definition
public interface IThrows<TContainer>

Methods

Throws(Exception)

Throws a the specified exception for target call.

Declaration

cs-api-definition
IAssertable Throws(Exception exception)

Parameters

exception

Exception

Returns

IAssertable

Throws<TException>()

Throws a the specified exception for target call.

Declaration

cs-api-definition
IAssertable Throws<TException>() where TException : Exception

Returns

IAssertable

Throws<TException>(params object[])

Throws a the specified exception for target call.

Declaration

cs-api-definition
IAssertable Throws<TException>(params object[] args) where TException : Exception

Parameters

args

object[]

Returns

IAssertable

ThrowsAsync(Exception)

Throws a the specified exception for the target async call causing returned task to fail.

Declaration

cs-api-definition
IAssertable ThrowsAsync(Exception exception)

Parameters

exception

Exception

Returns

IAssertable

ThrowsAsync<TException>()

Throws a the specified exception for the target async call causing returned task to fail.

Declaration

cs-api-definition
IAssertable ThrowsAsync<TException>() where TException : Exception

Returns

IAssertable

ThrowsAsync<TException>(params object[])

Throws a the specified exception for the target async call causing returned task to fail.

Declaration

cs-api-definition
IAssertable ThrowsAsync<TException>(params object[] args) where TException : Exception

Parameters

args

object[]

Returns

IAssertable