InterfaceIThrows<TContainer>
Interface
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
Returns
Throws<TException>()
Throws a the specified exception for target call.
Declaration
cs-api-definition
IAssertable Throws<TException>() where TException : Exception
Returns
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
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
Returns
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
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