[英]Generate unit tests for my code by using IntelliTest
I found that I can use IntelliTest to generate unit tests for my code.我发现我可以使用IntelliTest为我的代码生成单元测试。 I am using Visual Studio Enterprise 2019 , but I don't see this option when I right-click on a method.我使用的是Visual Studio Enterprise 2019 ,但是当我右键单击某个方法时没有看到此选项。
Should I download something?我应该下载一些东西吗?
Could it be related to my answer on Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard?这可能与我对Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard 的回答有关吗? ? ? In a nutshell, if your app targets .NET Core there is a bug that needs to be upvoted in order to have this functionality fix.简而言之,如果您的应用以 .NET Core 为目标,则需要对一个错误进行投票才能修复此功能。
TL&DR: Visual Studio Enterprise 2022 also does NOT have this capability! TL&DR:Visual Studio Enterprise 2022 也不具备此功能!
IntelliTest is available in Enterprise edition only. IntelliTest 仅在企业版中可用。 It is supported for C# code that targets the .NET Framework.它支持针对 .NET 框架的 C# 代码。 .NET Core and .NET Standard are not currently supported.目前不支持 .NET Core 和 .NET Standard。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.