skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Interface IThrows<TContainer>

Throws() methods.

Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll

Syntax

public interface IThrows<TContainer>
Type Parameters
TContainer

Methods

Throws(Exception)

Throws a the specified exception for target call.

Declaration
IAssertable Throws(Exception exception)
Parameters
System.Exception exception

Returns
IAssertable

Throws<TException>()

Throws a the specified exception for target call.

Declaration
IAssertable Throws<TException>()
    where TException : Exception
Returns
IAssertable

Type Parameters
TException

Throws<TException>(Object[])

Throws a the specified exception for target call.

Declaration
IAssertable Throws<TException>(params object[] args)
    where TException : Exception
Parameters
System.Object[] args

Returns
IAssertable

Type Parameters
TException

ThrowsAsync(Exception)

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

Declaration
IAssertable ThrowsAsync(Exception exception)
Parameters
System.Exception exception

Returns
IAssertable

ThrowsAsync<TException>()

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

Declaration
IAssertable ThrowsAsync<TException>()
    where TException : Exception
Returns
IAssertable

Type Parameters
TException

ThrowsAsync<TException>(Object[])

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

Declaration
IAssertable ThrowsAsync<TException>(params object[] args)
    where TException : Exception
Parameters
System.Object[] args

Returns
IAssertable

Type Parameters
TException

Extension Methods

FluentHelper.Arrange<T, TResult>(T, Expression<Func<T, TResult>>)
FluentHelper.Arrange<T>(T, Expression<Action<T>>)
FluentHelper.ArrangeSet<T>(T, Action<T>)
FluentHelper.ArrangeLike<T>(T, Expression<Func<T, Boolean>>)
FluentHelper.Assert<T, TReturn>(T, Expression<Func<T, TReturn>>, String)
FluentHelper.Assert<T, TReturn>(T, Expression<Func<T, TReturn>>, Occurs, String)
FluentHelper.Assert<T>(T, Expression<Action<T>>, String)
FluentHelper.Assert<T>(T, Expression<Action<T>>, Occurs, String)
FluentHelper.AssertSet<T>(T, Action<T>, String)
FluentHelper.AssertSet<T>(T, Action<T>, Occurs, String)
FluentHelper.Raise<T>(T, Action<T>, EventArgs)
FluentHelper.Raise<T>(T, Action<T>, Object[])
FluentHelper.Assert<T>(T, String)
FluentHelper.AssertAll<T>(T, String)
Getting Started
  • Unit Testing and Mocking Explained
  • Videos
  • FAQs
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.