A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-extensions-fakes below:

Microsoft.Testing.Platform Fakes extension - .NET

The Microsoft.Testing.Extensions.Fakes extension provides support to execute a test project that makes use of Microsoft Fakes.

Microsoft Fakes allows you to better test your code by either generating Stubs (for instance creating a testable implementation of INotifyPropertyChanged) or by Shiming methods and static methods (replacing the implementation of File.Open with a one you can control in your tests).

Note

This extension requires a Visual Studio Enterprise installation with the minimum version of 17.11 preview 1 in order to work correctly.

Upgrade your project to the new extension

To use the new extension with an existing project, update the existing Microsoft.QualityTools.Testing.Fakes reference with Microsoft.Testing.Extensions.Fakes.

- <Reference Include="Microsoft.QualityTools.Testing.Fakes, Version=12.0.0.0, Culture=Neutral">
-   <SpecificVersion>False</SpecificVersion>
- </Reference>
+ <PackageReference Include="Microsoft.Testing.Extensions.Fakes" Version="17.12.0" />

If you are using MSTest.Sdk 3.7 or later, use the EnableMicrosoftTestingExtensionsFakes property to enable the extension and don't add the package reference.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4