Does Microsoft IntelliTest support .NET core frame work?

Mohanty, Asima 0 Reputation points
2023-07-21T07:34:55.52+00:00

I wanted to know about whether "IntelliTest" support .NET core frame work? If yes which version of visual studio it is available?

will Intellitest generate test scripts for nested method calls as well?

For ex:- I am generating a testcase for controller , and it calls service layer and business layer.

So my question is will it call other layers method inside the controller test case or it will mock those calls using Intellitest autogenerate script?

Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2023-07-23T03:40:53.1733333+00:00

    IntelliTest Supports .net core and is available with visual studio enterprise editions. It does not implement mocking, it just calls the selected method with different values.

    for a controller you would want to be sure you used injection, so you can mock the service and data layers. You would also need mock HttpContext if used.

    While asp.net core was designed to allow unit testing controller methods, not sure how successful IntelliTest will be, especially if the viewModels are complex.

    1 person found this answer helpful.

  2. Anonymous
    2023-07-24T07:53:16.3933333+00:00

    Hi @Mohanty, Asima

    From the Microsoft IntelliTest official document, we can see that:

    IntelliTest is available in Enterprise edition only. It is supported for C# code that targets the .NET Framework. .NET Core and .NET Standard are not currently supported.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Dillion

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.