Skip to main content
StaticMocks package icon

StaticMocks

A mocking framework capable of mocking .NET and .NET Core static methods

Total Downloads
18.8K
18,812
Published
Oct 13, 2016
Latest stable version

Install

.NET CLI
dotnet add package StaticMocks --version 0.8.0-beta-506
Package Manager Console
Install-Package StaticMocks -Version 0.8.0-beta-506
PackageReference
<PackageReference Include="StaticMocks" Version="0.8.0-beta-506" />

Frameworks

.NETFramework4.5.2 .NETStandard1.6

Dependencies

NSubstitute
.NETFramework4.5.2
[2.0.0-rc, )
NETStandard.Library
.NETStandard1.6
[1.6.0, )
NSubstitute
.NETStandard1.6
[2.0.0-rc, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.