![]() |
VOOZH | about |
dotnet add package Any.NSubstitute --version 2.0.0
NuGet\Install-Package Any.NSubstitute -Version 2.0.0
<PackageReference Include="Any.NSubstitute" Version="2.0.0" />
<PackageVersion Include="Any.NSubstitute" Version="2.0.0" />Directory.Packages.props
<PackageReference Include="Any.NSubstitute" />Project file
paket add Any.NSubstitute --version 2.0.0
#r "nuget: Any.NSubstitute, 2.0.0"
#:package Any.NSubstitute@2.0.0
#addin nuget:?package=Any.NSubstitute&version=2.0.0Install as a Cake Addin
#tool nuget:?package=Any.NSubstitute&version=2.0.0Install as a Cake Tool
Creates an instance of an interface using NSubstitute, but with method and property return values pre-canned with something different than defaults.
var instance = Any.Substitute<IMyInstance>();
Assert.AreNotEqual(default, instance.GetInt1());
Assert.AreNotEqual(instance.GetInt1(), instance.GetInt2());
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.